From 5ff22f425aa2ac520a0e75fba10a96304650a762 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 16 Sep 2022 16:44:14 +0200 Subject: [PATCH] Remove unused pg-role functions --- infrastructure/docker-backup/image/resources/backup.sh | 1 - infrastructure/docker-backup/image/resources/init.sh | 1 - infrastructure/docker-backup/image/resources/restore.sh | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/infrastructure/docker-backup/image/resources/backup.sh b/infrastructure/docker-backup/image/resources/backup.sh index 9bdbde1..d2549fd 100755 --- a/infrastructure/docker-backup/image/resources/backup.sh +++ b/infrastructure/docker-backup/image/resources/backup.sh @@ -8,7 +8,6 @@ function main() { file_env RESTIC_DAYS_TO_KEEP 30 file_env RESTIC_MONTHS_TO_KEEP 12 - #backup-roles 'TODO' backup-db-dump backup-fs-from-directory '/var/backups/' 'gitea/' 'git/repositories/' } diff --git a/infrastructure/docker-backup/image/resources/init.sh b/infrastructure/docker-backup/image/resources/init.sh index baac041..1f47fa5 100755 --- a/infrastructure/docker-backup/image/resources/init.sh +++ b/infrastructure/docker-backup/image/resources/init.sh @@ -4,7 +4,6 @@ function main() { file_env AWS_ACCESS_KEY_ID file_env AWS_SECRET_ACCESS_KEY - #init-role-repo init-database-repo init-file-repo } diff --git a/infrastructure/docker-backup/image/resources/restore.sh b/infrastructure/docker-backup/image/resources/restore.sh index 0d9d10d..2289ab2 100755 --- a/infrastructure/docker-backup/image/resources/restore.sh +++ b/infrastructure/docker-backup/image/resources/restore.sh @@ -23,12 +23,11 @@ function main() { # adjust file permissions for the git user chown -R 1000:1000 /var/backups - # TODO: Regenerate Git Hooks + # TODO: Regenerate Git Hooks? Do we need this? #/usr/local/bin/gitea -c '/data/gitea/conf/app.ini' admin regenerate hooks # Restore db drop-create-db - #restore-roles restore-db }