为 cron 定时执行添加日志.

This commit is contained in:
2023-01-28 22:16:59 +08:00
parent 0d4e1368fd
commit 75501d82a1
2 changed files with 2 additions and 2 deletions

View File

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