12 lines
No EOL
291 B
Bash
12 lines
No EOL
291 B
Bash
#!/bin/bash
|
|
|
|
set -eux pipefail
|
|
|
|
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 |