Skip to content

Commit 511aafe

Browse files
committed
Trigger multiphp legacy migration script during upgrade.
1 parent 84569da commit 511aafe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/upgrade/versions/latest.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,11 @@ if [ -z "$IMAP_SYSTEM" ]; then
185185
if [ -e /etc/dovecot/conf.d/90-quota.conf ]; then
186186
cp -f $HESTIA/install/deb/dovecot/conf.d/90-quota.conf /etc/dovecot/conf.d/90-quota.conf
187187
fi
188+
fi
189+
190+
# Trigger multiphp legacy migration script
191+
num_php_versions=$(ls -d /etc/php/*/fpm/pool.d 2>/dev/null |wc -l)
192+
if [ "$num_php_versions" -gt 1 ] && [ -z "$WEB_BACKEND" ]; then
193+
echo "(*) Migrate to new multiphp backend system..."
194+
$HESTIA/install/upgrade/manual/migrate-190718-multiphp.sh > /dev/null 2>&1
188195
fi

0 commit comments

Comments
 (0)