Remove cron job setup from deploy script
Backup scheduling will be handled via the Unraid User Scripts plugin instead, which persists across reboots. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
deploy.sh
12
deploy.sh
@@ -75,18 +75,6 @@ ssh "${UNRAID_SSH}" "
|
||||
fi
|
||||
" || error "Failed to check/create .env on Unraid."
|
||||
|
||||
# ── Ensure daily backup cron job exists ───────────────────────────
|
||||
info "Checking for backup cron job on Unraid..."
|
||||
CRON_CMD="0 3 * * * ${UNRAID_DEPLOY_DIR}/backup.sh >> ${UNRAID_DEPLOY_DIR}/backups/cron.log 2>&1"
|
||||
ssh "${UNRAID_SSH}" "
|
||||
if ! crontab -l 2>/dev/null | grep -qF '${UNRAID_DEPLOY_DIR}/backup.sh'; then
|
||||
(crontab -l 2>/dev/null; echo '${CRON_CMD}') | crontab -
|
||||
echo 'Cron job installed (daily at 03:00)'
|
||||
else
|
||||
echo 'Cron job already exists, skipping'
|
||||
fi
|
||||
" || error "Failed to set up backup cron job on Unraid."
|
||||
|
||||
# ── Pull images and (re)start on Unraid ──────────────────────────
|
||||
info "Pulling images and starting containers on Unraid..."
|
||||
ssh "${UNRAID_SSH}" "cd '${UNRAID_DEPLOY_DIR}' && docker compose pull && docker compose up -d" \
|
||||
|
||||
Reference in New Issue
Block a user