Permalink
Browse files

Added sudo requirement for app start too

  • Loading branch information...
1 parent 1332efa commit b59741c3714cbb81f341355b1359dbea2b963e11 @davglass committed Mar 22, 2011
Showing with 10 additions and 0 deletions.
  1. +5 −0 bin/app_start.sh
  2. +5 −0 bin/app_stop.sh
View
@@ -1,5 +1,10 @@
#!/bin/bash
+if [ "$USER" != "root" ]; then
+ echo "Must be root to run this.. Please sudo this command."
+ exit
+fi
+
cd `dirname $0`
./node-config.js
View
@@ -1,5 +1,10 @@
#!/bin/bash
+if [ "$USER" != "root" ]; then
+ echo "Must be root to run this.. Please sudo this command."
+ exit
+fi
+
cd `dirname $0`
./node-config.js

0 comments on commit b59741c

Please sign in to comment.