diff --git a/easynode-client-install.sh b/easynode-client-install.sh index 2ec3413..05bb3ef 100644 --- a/easynode-client-install.sh +++ b/easynode-client-install.sh @@ -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 diff --git a/easynode-client-uninstall.sh b/easynode-client-uninstall.sh index 000556d..c4cca15 100644 --- a/easynode-client-uninstall.sh +++ b/easynode-client-uninstall.sh @@ -31,4 +31,4 @@ fi echo "*********************** 卸载完成 ***************************" # echo "***********************删除脚本***********************" -rm "$0" \ No newline at end of file +# rm "$0" \ No newline at end of file diff --git a/easynode-server-install.sh b/easynode-server-install.sh index 286c1bb..5446f63 100644 --- a/easynode-server-install.sh +++ b/easynode-server-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e if [ "$(id -u)" != "0" ] ; then echo "***********************请切换到root再尝试执行***********************"