c4k-nextcloud/infrastructure/backup/image/resources/end-maintenance.sh

12 lines
291 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2023-12-07 20:54:20 +00:00
set -exo pipefail
2021-12-15 12:49:57 +00:00
if test -f "/var/backups/config/config.orig"; then
rm /var/backups/config/config.php
mv /var/backups/config/config.orig /var/backups/config/config.php
chown www-data:root /var/backups/config/config.php
touch /var/backups/config/config.php
fi