Skip to content

Commit 3de113a

Browse files
authored
restart hestia-php after update (hestiacp#1998)
* Include post install script * Force restart after installing hestia-php
1 parent 931eb49 commit 3de113a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/hst_autocompile.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,6 @@ if [ "$PHP_B" = true ] ; then
501501
[ "$HESTIA_DEBUG" ] && echo DEBUG: cp -rf "$SRC_DIR/" $BUILD_DIR/hestiacp-$branch_dash
502502
cp -rf "$SRC_DIR/" $BUILD_DIR/hestiacp-$branch_dash
503503
fi
504-
505-
# Set permission
506-
#chmod +x postinst
507-
508504
# Move php directory
509505
[ "$HESTIA_DEBUG" ] && echo DEBUG: mkdir -p $BUILD_DIR_HESTIAPHP/usr/local/hestia
510506
mkdir -p $BUILD_DIR_HESTIAPHP/usr/local/hestia
@@ -533,7 +529,8 @@ if [ "$PHP_B" = true ] ; then
533529
sed -i "s/amd64/${BUILD_ARCH}/g" "$BUILD_DIR_HESTIAPHP/DEBIAN/control"
534530
fi
535531
get_branch_file 'src/deb/php/copyright' "$BUILD_DIR_HESTIAPHP/DEBIAN/copyright"
536-
532+
get_branch_file 'src/deb/php/postinst' "$BUILD_DIR_HESTIAPHP/DEBIAN/postinst"
533+
chmod +x $BUILD_DIR_HESTIAPHP/DEBIAN/postinst
537534
# Get custom config
538535
get_branch_file 'src/deb/php/php-fpm.conf' "${BUILD_DIR_HESTIAPHP}/usr/local/hestia/php/etc/php-fpm.conf"
539536
get_branch_file 'src/deb/php/php.ini' "${BUILD_DIR_HESTIAPHP}/usr/local/hestia/php/lib/php.ini"

0 commit comments

Comments
 (0)