Skip to content

Commit 01ea78c

Browse files
committed
Update installers with new var
Also included setting in func/upgrade
1 parent 2f82ca2 commit 01ea78c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

func/upgrade.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ upgrade_health_check() {
126126
echo "[ ! ] Adding missing variable to hestia.conf: LOGIN_STYLE ('default')"
127127
$BIN/v-change-sys-config-value "LOGIN_STYLE" "default"
128128
fi
129+
130+
# Inactive session timeout
131+
if [ -z "$INACTIVE_SESSION_TIMEOUT" ]; then
132+
echo "[ ! ] Adding missing variable to hestia.conf: INACTIVE_SESSION_TIMEOUT ('60')"
133+
$BIN/v-change-sys-config-value "INACTIVE_SESSION_TIMEOUT" "60"
134+
fi
135+
129136

130137
echo "[ * ] Health check complete. Starting upgrade from $VERSION to $new_version..."
131138
echo "============================================================================="

install/hst-install-debian.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ echo "LANGUAGE='$lang'" >> $HESTIA/conf/hestia.conf
10891089
# Login in screen
10901090
echo "LOGIN_STYLE='default'" >> $HESTIA/conf/hestia.conf
10911091

1092+
# Inactive session timeout
1093+
echo "INACTIVE_SESSION_TIMEOUT='60'" >> $HESTIA/conf/hestia.conf
1094+
10921095
# Version & Release Branch
10931096
echo "VERSION='${HESTIA_INSTALL_VER}'" >> $HESTIA/conf/hestia.conf
10941097
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ echo "LANGUAGE='$lang'" >> $HESTIA/conf/hestia.conf
11401140
# Login in screen
11411141
echo "LOGIN_STYLE='default'" >> $HESTIA/conf/hestia.conf
11421142

1143+
# Inactive session timeout
1144+
echo "INACTIVE_SESSION_TIMEOUT='60'" >> $HESTIA/conf/hestia.conf
1145+
11431146
# Version & Release Branch
11441147
echo "VERSION='${HESTIA_INSTALL_VER}'" >> $HESTIA/conf/hestia.conf
11451148
echo "RELEASE_BRANCH='release'" >> $HESTIA/conf/hestia.conf

0 commit comments

Comments
 (0)