diff --git a/scripts/create-release.sh b/scripts/create-release.sh index 00caf870a8..8d3c4b7992 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -3,6 +3,12 @@ # vim: expandtab sw=4 ts=4 sts=4: # +# Do not run as CGI +if [ -n "$GATEWAY_INTERFACE" ] ; then + echo 'Can not invoke as CGI!' + exit 1 +fi + # More documentation about making a release is available at: # https://wiki.phpmyadmin.net/pma/Releasing diff --git a/scripts/generate-mo b/scripts/generate-mo index 9e16927d97..3dc88f6199 100755 --- a/scripts/generate-mo +++ b/scripts/generate-mo @@ -1,4 +1,10 @@ #!/bin/sh +# Do not run as CGI +if [ -n "$GATEWAY_INTERFACE" ] ; then + echo 'Can not invoke as CGI!' + exit 1 +fi + if [ x$1 = x--quiet ] ; then stats="" shift diff --git a/scripts/generate-sprites b/scripts/generate-sprites index 1b8ffb9477..2b80431cc7 100755 --- a/scripts/generate-sprites +++ b/scripts/generate-sprites @@ -1,6 +1,12 @@ #!/bin/sh # vim: expandtab sw=4 ts=4 sts=4: +# Do not run as CGI +if [ -n "$GATEWAY_INTERFACE" ] ; then + echo 'Can not invoke as CGI!' + exit 1 +fi + # Check for proper number of command line args. if [ $# -ne 1 ]; then echo "Usage: `basename $0` {path_to_pma_root_folder}" diff --git a/scripts/lang-cleanup.sh b/scripts/lang-cleanup.sh index 54dfd16f7b..846dffc87e 100755 --- a/scripts/lang-cleanup.sh +++ b/scripts/lang-cleanup.sh @@ -4,6 +4,12 @@ # # Script for removing language selection from phpMyAdmin +# Do not run as CGI +if [ -n "$GATEWAY_INTERFACE" ] ; then + echo 'Can not invoke as CGI!' + exit 1 +fi + if [ $# -lt 1 ] ; then echo "Usage: lang-cleanup.sh type" echo "Type can be one of:" diff --git a/scripts/line-counts.sh b/scripts/line-counts.sh index bcf07620ea..c4657ca097 100755 --- a/scripts/line-counts.sh +++ b/scripts/line-counts.sh @@ -1,4 +1,11 @@ #!/bin/bash + +# Do not run as CGI +if [ -n "$GATEWAY_INTERFACE" ] ; then + echo 'Can not invoke as CGI!' + exit 1 +fi + cat > js/line_counts.php <