不要求使用root

This commit is contained in:
zhanglikun 2024-02-02 21:43:56 +08:00
parent 3b6e15310f
commit df6a57a27f

View File

@ -2,11 +2,6 @@
source .env source .env
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script"
exit 1
fi
# 部署之前先分发 init 内容 # 部署之前先分发 init 内容
scp -r init/ root@${MASTER1}:/tmp/ scp -r init/ root@${MASTER1}:/tmp/
scp -r init/ root@${MASTER2}:/tmp/ scp -r init/ root@${MASTER2}:/tmp/