fix: fix array problem

This commit is contained in:
ttionya
2021-02-24 00:10:22 +08:00
parent 334d7b2d6a
commit 6f54b14046
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ function configure_timezone() {
function configure_cron() {
local FIND_CRON_COUNT=$(crontab -l | grep -c 'backup.sh')
if [[ ${FIND_CRON_COUNT} -eq 0 ]]; then
echo "${CRON} sh /app/backup.sh > /dev/stdout" >> /etc/crontabs/root
echo "${CRON} bash /app/backup.sh > /dev/stdout" >> /etc/crontabs/root
fi
}