Browse Source

check sudo

master
zeus 4 years ago
parent
commit
7953be01ad
  1. 13
      install.sh
  2. 1
      restart
  3. 1
      start
  4. 1
      stop

13
install.sh

@ -1,5 +1,8 @@
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
wdir=$PWD
wdir_connect="$wdir/src-local/hybrid/connect"
@ -263,3 +266,13 @@ echo " Start Server: ./start.sh "
echo ""
echo " Stop Server: ./stop.sh "
echo ""
else
echo ""
echo "-------------------------"
echo "Run ./install.sh as Non-Root User"
echo "-------------------------"
echo ""
fi

1
restart

@ -0,0 +1 @@
restart.sh

1
start

@ -0,0 +1 @@
start.sh

1
stop

@ -0,0 +1 @@
stop.sh
Loading…
Cancel
Save