Skip to content

Commit a40e8f5

Browse files
committed
Add PHP install informations and do a reboot instead logout.
1 parent fd9043c commit a40e8f5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

install/hst-install-debian.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,14 +1193,14 @@ if [ "$multiphp" = 'yes' ] ; then
11931193
for v in "${multiphp_v[@]}"; do
11941194
cp -r /etc/php/$v/ /root/hst_install_backups/php$v/
11951195
rm -f /etc/php/$v/fpm/pool.d/*
1196-
1197-
$HESTIA/bin/v-add-web-php "$v"
1196+
echo "(*) Install PHP version $v..."
1197+
$HESTIA/bin/v-add-web-php "$v" > /dev/null 2>&1
11981198
done
11991199
fi
12001200

12011201
if [ "$phpfpm" = 'yes' ]; then
12021202
echo "(*) Configuring PHP-FPM..."
1203-
$HESTIA/bin/v-add-web-php "$fpm_v"
1203+
$HESTIA/bin/v-add-web-php "$fpm_v" > /dev/null 2>&1
12041204
cp -f $HESTIA_INSTALL_DIR/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/www.conf
12051205
update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
12061206
systemctl start php$fpm_v-fpm >> $LOG
@@ -1833,11 +1833,11 @@ $HESTIA/bin/v-add-user-notification admin 'Welcome!' 'For more information on ho
18331833
echo "(!) IMPORTANT: You must logout or restart the server before continuing."
18341834
echo ""
18351835
if [ "$interactive" = 'yes' ]; then
1836-
echo -n " Do you want to logout now? [Y/N] "
1837-
read resetshell
1836+
echo -n " Do you want to reboot now? [Y/N] "
1837+
read reboot
18381838

1839-
if [ "$resetshell" = "Y" ] || [ "$resetshell" = "y" ]; then
1840-
exit
1839+
if [ "$reboot" = "Y" ] || [ "$reboot" = "y" ]; then
1840+
reboot
18411841
fi
18421842
fi
18431843

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,14 +1160,14 @@ if [ "$multiphp" = 'yes' ] ; then
11601160
for v in "${multiphp_v[@]}"; do
11611161
cp -r /etc/php/$v/ /root/hst_install_backups/php$v/
11621162
rm -f /etc/php/$v/fpm/pool.d/*
1163-
1164-
$HESTIA/bin/v-add-web-php "$v"
1163+
echo "(*) Install PHP version $v..."
1164+
$HESTIA/bin/v-add-web-php "$v" > /dev/null 2>&1
11651165
done
11661166
fi
11671167

11681168
if [ "$phpfpm" = 'yes' ]; then
11691169
echo "(*) Configuring PHP-FPM..."
1170-
$HESTIA/bin/v-add-web-php "$fpm_v"
1170+
$HESTIA/bin/v-add-web-php "$fpm_v" > /dev/null 2>&1
11711171
cp -f $HESTIA_INSTALL_DIR/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/www.conf
11721172
update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
11731173
systemctl start php$fpm_v-fpm >> $LOG
@@ -1760,11 +1760,11 @@ $HESTIA/bin/v-add-user-notification admin 'Welcome!' 'For more information on ho
17601760
echo "(!) IMPORTANT: You must logout or restart the server before continuing."
17611761
echo ""
17621762
if [ "$interactive" = 'yes' ]; then
1763-
echo -n " Do you want to logout now? [Y/N] "
1764-
read resetshell
1763+
echo -n " Do you want to reboot now? [Y/N] "
1764+
read reboot
17651765

1766-
if [ "$resetshell" = "Y" ] || [ "$resetshell" = "y" ]; then
1767-
exit
1766+
if [ "$reboot" = "Y" ] || [ "$reboot" = "y" ]; then
1767+
reboot
17681768
fi
17691769
fi
17701770

0 commit comments

Comments
 (0)