Fixes for php-fpm service
This commit is contained in:
@@ -1897,6 +1897,14 @@ if [ "$apache" = 'yes' ] && [ "$nginx" = 'yes' ]; then
|
||||
systemctl restart httpd
|
||||
fi
|
||||
|
||||
#install oneshot service for hestia
|
||||
echo "[ * ] Configuring One Shot Service..."
|
||||
$HESTIA/bin/v-oneshot-service
|
||||
if [ ! -e /etc/systemd/system/hestiacp-prepare.service ]; then
|
||||
cp -f $HESTIA_INSTALL_DIR/oneshot/hestiacp-prepare.service /etc/systemd/system/
|
||||
systemctl enable hestiacp-prepare.service --now
|
||||
fi
|
||||
|
||||
# Adding default domain
|
||||
$HESTIA/bin/v-add-web-domain admin $servername $ip
|
||||
check_result $? "can't create $servername domain"
|
||||
|
||||
11
install/rpm/oneshot/hestiacp-prepare.service
Normal file
11
install/rpm/oneshot/hestiacp-prepare.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Prepare some actions on system boot for HestiaCP rpm
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/local/hestia/bin/v-oneshot-service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user