增加 Cron 已配置的提示输出.

This commit is contained in:
LamGC 2023-01-28 23:52:22 +08:00
parent 667f22a80b
commit ccf29da0a6
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -213,5 +213,6 @@ if [ $(has_param "-c" "--cron") == "true" ]; then
echo "Install conf-sshd script successfully."
# 将当前脚本添加到 Crontab 中
echo "$cron /bin/bash ~/.conf-sshd/conf-sshd.sh -o -k $sshkey_url >> ~/.conf-sshd/run.log" | crontab -
echo "Crontab has been configured.(Cron: '$cron')"
fi
fi