File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
1717- Fixed an issue where the "Saved confirmation" was not set due to a redirect #1879
1818- Increased minimal memory requirements for ClamD / ClamAV. #1840
1919- Restore of backup did not rebuild the "Forced SSL" and "HSTS" config on new account #1862
20+ - Keep changes made by /install/upgrade/manual/install_awstats_geopip.sh on update HestiaCP (via Discord)
2021
2122## [ 1.4.2] - Service release
2223
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ source $HESTIA/conf/hestia.conf
2626# Action #
2727# ----------------------------------------------------------#
2828
29+ # Check if /install/upgrade/manual/install_awstats_geoip.sh has been applied
30+ awstats_patch=$( cat $HESTIA /data/templates/web/awstats/awstats.tpl | grep " LoadPlugin=\" geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\" " ) ;
31+
2932# Update templates
3033if [ -d " ${WEBTPL} " ]; then
3134 rm -rf " ${WEBTPL} /skel" 2> /dev/null
@@ -48,6 +51,11 @@ for php_ver in $(ls /etc/php/); do
4851 cp -f " $HESTIA_INSTALL_DIR /php-fpm/multiphp.tpl" ${WEBTPL} /php-fpm/PHP-${php_ver/ \. / _} .tpl
4952done
5053
54+ if [ ! -z " $awstats_patch " ]; then
55+ # restore LoadPlugin variable
56+ echo " LoadPlugin=\" geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\" " >> $HESTIA /data/templates/web/awstats/awstats.tpl
57+ fi
58+
5159# Rebuilding web domains
5260if [ -z " $skip " ]; then
5361 for user in $( $BIN /v-list-sys-users plain) ; do
You can’t perform that action at this time.
0 commit comments