Skip to content

Commit c7701b6

Browse files
author
Kristan Kenney
committed
Fixes to how variables are set during upgrades
1 parent 426a952 commit c7701b6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

install/upgrade/versions/latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if [ ! -z "$WEBALIZER_CHECK" ]; then
6161
if [ -d "/var/www/webalizer" ]; then
6262
rm -rf /var/www/webalizer
6363
fi
64-
sed -i "s/STATS_SYSTEM='webalizer,awstats'/STATS_SYSTEM='awstats'/g" $HESTIA/conf/hestia.conf
64+
$HESTIA/bin/v-change-sys-config-value 'STATS_SYSTEM' 'awstats'
6565
fi
6666

6767
# Remove old hestia.conf files from Apache & NGINX if they exist
@@ -83,6 +83,6 @@ fi
8383

8484
# Update webmail templates to enable OCSP/SSL stapling
8585
if [ ! -z "$IMAP_SYSTEM" ]; then
86-
echo "(*) Enabling OCSP stapling support for webmail services..."
86+
echo "(*) Improving SSL security of Roundcube webmail..."
8787
$BIN/v-update-mail-templates > /dev/null 2>&1
8888
fi

install/upgrade/versions/previous/1.0.1.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# Ensure that users from previous releases are set to the correct stable release branch
1010
if [ ! -z "$RELEASE_BRANCH" ] && [ "$RELEASE_BRANCH" = "master" ] || [ "$RELEASE_BRANCH" = "develop" ]; then
1111
echo "(*) Updating default release branch configuration..."
12-
sed -i "/RELEASE_BRANCH/d" $HESTIA/conf/hestia.conf
13-
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf
12+
$HESTIA/bin/v-change-sys-config-value 'RELEASE_BRANCH' 'release'
1413
fi
1514

1615
# Back up old template files and install the latest versions

0 commit comments

Comments
 (0)