2021-08-09 22:41:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-11-03 10:13:40 +00:00
|
|
|
set -eux pipefail
|
2021-12-15 12:49:57 +00:00
|
|
|
|
2021-08-09 22:41:53 +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
|