mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
safe adding ALLOW_BACKUP_ANYTIME to vesta.conf
This commit is contained in:
parent
3da021bcde
commit
f08de3d41c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue