From f08de3d41ce0128c572ad2ec6697c4fdd99b48d6 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 9 May 2020 21:12:16 +0200 Subject: [PATCH] safe adding ALLOW_BACKUP_ANYTIME to vesta.conf --- src/deb/vesta/postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 364574b5..91047359 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -46,6 +46,7 @@ if [ ! -f "/usr/local/vesta/data/upgrades/allow-backup-anytime" ]; then touch /usr/local/vesta/data/upgrades/allow-backup-anytime check_grep=$(grep -c 'ALLOW_BACKUP_ANYTIME' /usr/local/vesta/conf/vesta.conf) if [ "$check_grep" -eq 0 ]; then + echo "" >> /usr/local/vesta/conf/vesta.conf echo "ALLOW_BACKUP_ANYTIME='yes'" >> /usr/local/vesta/conf/vesta.conf fi fi