diff --git a/smp_init.sh b/smp_init.sh index 8baaad3..24c153e 100644 --- a/smp_init.sh +++ b/smp_init.sh @@ -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; }