Skip to content

Commit 2b83f37

Browse files
authored
fix: redirect append to crontabs instead of overriding
1 parent df9fc3e commit 2b83f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/etc/cont-init.d/04-update-crontabs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [[ "$EXECUTE_CRON" = "true" ]] && [[ -f "${USERS_CONF}" ]]; then
3737
schedule=$(echo "${row}" | jq -r 'to_entries|map("\(.value|tostring)")|.[]')
3838

3939
echo "Found schedule for command ${cmd}: ${schedule}"
40-
echo "${schedule} /usr/local/bin/nut-api -a \"${CRONTAB_USER}\" -c \"${cmd}\"" >/etc/crontabs/root
40+
echo "${schedule} /usr/local/bin/nut-api -a \"${CRONTAB_USER}\" -c \"${cmd}\"" >>/etc/crontabs/root
4141
echo "Added ${cmd} schedule to /etc/crontabs/root..."
4242
done
4343
else

0 commit comments

Comments
 (0)