改进脚本

main
zart 2 weeks ago
parent 8c85f4b2da
commit 6ec8f0b06e

@ -21,7 +21,7 @@ else
echo "download_and_execute.sh 不存在"
fi
cp download_and_execute.service /etc/systemd/system || { echo "无法复制文件"; exit 1; }
sudo cp download_and_execute.service /etc/systemd/system || { echo "无法复制文件"; exit 1; }
sudo systemctl enable download_and_execute.service || { echo "无法启用服务"; exit 1; }
sudo systemctl start download_and_execute.service || { echo "无法启动服务"; exit 1; }

Loading…
Cancel
Save