Skip to content

Commit 7516214

Browse files
author
Kristan Kenney
committed
Ensure BACKUP_GZIP var is set correctly
1 parent b9b690d commit 7516214

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

install/upgrade/versions/latest.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,11 @@ fi
105105
if [ -e "$HESTIA/data/templates/dns/office365.tpl" ]; then
106106
echo "(*) Updating DNS template for Office 365..."
107107
cp -f $HESTIA/install/deb/templates/dns/office365.tpl $HESTIA/data/templates/dns/office365.tpl
108-
fi
108+
fi
109+
110+
# Ensure that backup compression level is correctly set
111+
GZIP_LVL_CHECK=$(cat $HESTIA/conf/hestia.conf | grep BACKUP_GZIP)
112+
if [ -z "$GZIP_LVL_CHECK" ]; then
113+
echo "(*) Updating backup compression level variable..."
114+
$BIN/v-change-sys-config-value "BACKUP_GZIP" '9'
115+
fi

0 commit comments

Comments
 (0)