Skip to content

Commit c739b40

Browse files
author
Alexandros Ioannides
authored
Consolidate nginx templates
1 parent bfbf284 commit c739b40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/upgrade/versions/1.4.0.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,13 @@ if [ ! -f "$HESTIA/conf/defaults/hestia.conf" ]; then
126126
fi
127127
cp -f $HESTIA/conf/hestia.conf $HESTIA/conf/defaults/hestia.conf
128128
fi
129+
130+
# Consolidate nginx (standalone) templates used by active websites
131+
if [ "$WEB_SYSTEM" = "nginx" ]; then
132+
echo "[ * ] Consolidating nginx templates for Drupal & CodeIgniter..."
133+
sed -i "s|TPL='drupal6'|TPL='drupal'|g" $HESTIA/data/users/*/web.conf
134+
sed -i "s|TPL='drupal7'|TPL='drupal'|g" $HESTIA/data/users/*/web.conf
135+
sed -i "s|TPL='drupal8'|TPL='drupal'|g" $HESTIA/data/users/*/web.conf
136+
sed -i "s|TPL='codeigniter2'|TPL='codeigniter'|g" $HESTIA/data/users/*/web.conf
137+
sed -i "s|TPL='codeigniter3'|TPL='codeigniter'|g" $HESTIA/data/users/*/web.conf
138+
fi

0 commit comments

Comments
 (0)