|
|
@@ -29,11 +29,15 @@ source_conf "$HESTIA/conf/hestia.conf"
|
|
|
# Check if /install/upgrade/manual/install_awstats_geoip.sh has been applied
|
|
|
awstats_patch=$(cat $HESTIA/data/templates/web/awstats/awstats.tpl | grep "LoadPlugin=\"geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\"")
|
|
|
|
|
|
-# Update templates
|
|
|
-if [ -d "${WEBTPL}" ]; then
|
|
|
+# Skeleton, Unassinged and Suspended
|
|
|
+if [ "$POLICY_SYNC_SKELETON" != "no" ]; then
|
|
|
rm -rf "${WEBTPL}/skel" 2> /dev/null
|
|
|
rm -rf "${WEBTPL}/suspend" 2> /dev/null
|
|
|
rm -rf "${WEBTPL}/unassigned" 2> /dev/null
|
|
|
+
|
|
|
+ for webtpl_folder in $(ls $HESTIA_COMMON_DIR/templates/web/* -d 2> /dev/null); do
|
|
|
+ cp -rf "${webtpl_folder}" "${WEBTPL}/"
|
|
|
+ done
|
|
|
fi
|
|
|
|
|
|
[ -d "${WEBTPL}/nginx" ] || mkdir -p "${WEBTPL}/nginx"
|
|
|
@@ -46,13 +50,6 @@ for webtpl_folder in $(ls $HESTIA_INSTALL_DIR/templates/web/* -d 2> /dev/null |
|
|
|
cp -rf "${webtpl_folder}" "${WEBTPL}/"
|
|
|
done
|
|
|
|
|
|
-# Skeleton, Unassinged and Suspended
|
|
|
-if [ "$POLICY_SYNC_SKELETON" != "no" ]; then
|
|
|
- for webtpl_folder in $(ls $HESTIA_COMMON_DIR/templates/web/* -d 2> /dev/null); do
|
|
|
- cp -rf "${webtpl_folder}" "${WEBTPL}/"
|
|
|
- done
|
|
|
-fi
|
|
|
-
|
|
|
versions_list=$(ls -d /etc/php/*)
|
|
|
for php_ver in $versions_list; do
|
|
|
[ ! -d "/etc/php/$php_ver/fpm/pool.d/" ] && continue
|