Skip to content
Snippets Groups Projects
Commit 5dd77808 authored by nimrod's avatar nimrod
Browse files

Update container name.

Because Docker Compose changed from using underscores to hyphens in the
containers name.
parent 0ead2d8e
No related branches found
No related tags found
No related merge requests found
Pipeline #2903 passed
......@@ -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 () {
......
*/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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment