[mapguide-commits] r8424 - trunk/MgDev/Server/src/Core
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Oct 19 06:48:02 PDT 2014
Author: jng
Date: 2014-10-19 06:48:02 -0700 (Sun, 19 Oct 2014)
New Revision: 8424
Modified:
trunk/MgDev/Server/src/Core/mapguidectl
Log:
#2496: Check for superuser privileges
Modified: trunk/MgDev/Server/src/Core/mapguidectl
===================================================================
--- trunk/MgDev/Server/src/Core/mapguidectl 2014-10-19 13:47:39 UTC (rev 8423)
+++ trunk/MgDev/Server/src/Core/mapguidectl 2014-10-19 13:48:02 UTC (rev 8424)
@@ -1,10 +1,17 @@
#!/bin/sh
# MapGuide init script
. /lib/lsb/init-functions
+
+# Must be superuser
+if [[ $EUID -ne 0 ]]; then
+ echo "You must have superuser privileges to run this script"
+ exit 1
+fi
+
case "$1" in
start)
log_daemon_msg "Starting MapGuide Server"
- pushd /usr/local/mapguideopensource/server/bin > /dev/null
+ pushd /usr/local/mapguideopensource-3.0.0/server/bin > /dev/null
./mgserverd.sh
popd > /dev/null
log_end_msg 0
More information about the mapguide-commits
mailing list