File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ All notable changes to this project will be documented in this file.
2727- Fixed ssh config save bug when edit the over interface.
2828- Fixed different permission issues on user restore.
2929- Stop trying to renew LE certs after multiple consecutive failed attempts. Thanks @dpeca
30+ - Implement a validation function to verify the correct version in hestia.conf prior to install a new one.
3031
3132## [ 1.1.1] - 2020-03-24 - Hotfix
3233### Features
Original file line number Diff line number Diff line change @@ -5,8 +5,17 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
55 exit
66fi
77
8+ # Load hestia.conf
9+ source /usr/local/hestia/conf/hestia.conf
10+
811# Configure apt to retry downloading on error
912if [ ! -f /etc/apt/apt.conf.d/80-retries ]; then
1013 echo " APT::Acquire::Retries \" 3\" ;" > /etc/apt/apt.conf.d/80-retries
1114fi
1215
16+ # Validate version number and replace if different
17+ HESTIA_V=$( dpkg -s hestia | grep -i version | awk ' { print $2 }' )
18+
19+ if [ ! " $HESTIA_V " = " $VERSION " ]; then
20+ sed -i " s/VERSION=.*/VERSION='$HESTIA_V '/g" /usr/local/hestia/conf/hestia.conf
21+ fi
You can’t perform that action at this time.
0 commit comments