From 5dd7780877cceaef9b78aedf2e4b46d1b50764b2 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 26 May 2022 21:11:12 +0300 Subject: [PATCH] Update container name. Because Docker Compose changed from using underscores to hyphens in the containers name. --- crond/backup | 2 +- crond/crontab | 2 +- crond/restore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crond/backup b/crond/backup index 8348a52..042a7bb 100755 --- a/crond/backup +++ b/crond/backup @@ -10,7 +10,7 @@ set -eu # maintenance window is short as possible. Backups as saved under /var/backups # which should be a Docker volume. -alias nc_run='docker exec -u www-data nextcloud_nextcloud_1' +alias nc_run='docker exec -u www-data nextcloud-nextcloud-1' alias db_run='docker exec -u nobody nextcloud_mysql_1' cleanup () { diff --git a/crond/crontab b/crond/crontab index 3f53c4f..1775524 100644 --- a/crond/crontab +++ b/crond/crontab @@ -1,3 +1,3 @@ -*/5 * * * * docker exec -u www-data nextcloud_nextcloud_1 php /var/www/html/cron.php || wget --spider https://notify.shore.co.il/send?message=Nextcloud%20cron%20failed. +*/5 * * * * docker exec -u www-data nextcloud-nextcloud-1 php /var/www/html/cron.php || wget --spider https://notify.shore.co.il/send?message=Nextcloud%20cron%20failed. @weekly backup || wget --spider https://notify.shore.co.il/send?message=Nextcloud%20backup%20failed. @daily find /var/backups -atime +18 -delete diff --git a/crond/restore b/crond/restore index 83189b0..9524bd3 100755 --- a/crond/restore +++ b/crond/restore @@ -3,7 +3,7 @@ set -eux src="$1" -alias nc_run='docker exec -iu www-data nextcloud_nextcloud_1' +alias nc_run='docker exec -iu www-data nextcloud-nextcloud-1' alias db_run='docker exec -iu nobody nextcloud_mysql_1' nc_run php occ maintenance:mode --on -- GitLab