Skip to content

Commit 55b52e3

Browse files
authored
fix/ prevent the script v-add-sys-roundcube from freezing during roundcube upgrade hestiacp#4017 (hestiacp#4018)
Use COMPOSER_ALLOW_SUPERUSER=1 to prevent update.sh script from freezing trying to execute composer as root to update roundcube dependencies
1 parent 0b2d471 commit 55b52e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/v-add-sys-roundcube

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ else
187187

188188
# Run Roundcube upgrade script
189189
$RC_INSTALL_DIR/$RC_EXTRACT/bin/installto.sh -y $RC_INSTALL_DIR > /dev/null 2>&1
190-
$RC_INSTALL_DIR/bin/update.sh --version "$version" > /dev/null 2>&1
190+
# Use COMPOSER_ALLOW_SUPERUSER=1 to prevent update.sh script from freezing trying
191+
# to execute composer as root to update roundcube dependencies
192+
COMPOSER_ALLOW_SUPERUSER=1 $RC_INSTALL_DIR/bin/update.sh --version "$version" > /dev/null 2>&1
191193
$RC_INSTALL_DIR/bin/indexcontacts.sh > /dev/null 2>&1
192194
chown -R root:www-data $RC_INSTALL_DIR
193195

0 commit comments

Comments
 (0)