瀏覽代碼

check sudo

master
zeus 6 月之前
父節點
當前提交
7953be01ad
共有 4 個檔案被更改,包括 16 行新增0 行删除
  1. +13
    -0
      install.sh
  2. +1
    -0
      restart
  3. +1
    -0
      start
  4. +1
    -0
      stop

+ 13
- 0
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
- 0
restart 查看文件

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

+ 1
- 0
start 查看文件

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

+ 1
- 0
stop 查看文件

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

Loading…
取消
儲存