This commit is contained in:
chaos-zhu 2022-06-16 10:50:39 +08:00
parent b678146e9c
commit 97aaae032a
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
if [ "$(id -u)" != "0" ] ; then
echo "***********************请切换到root再尝试执行***********************"
@ -81,5 +81,3 @@ systemctl start ${SERVER_NAME}
systemctl enable ${SERVER_NAME}
echo "***********************安装成功***********************"
rm $0

View File

@ -31,4 +31,4 @@ fi
echo "*********************** 卸载完成 ***************************"
# echo "***********************删除脚本***********************"
rm "$0"
# rm "$0"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
if [ "$(id -u)" != "0" ] ; then
echo "***********************请切换到root再尝试执行***********************"