renamed vhost-php-fpm-socket-helper vpanel-php-fpm-socket-helper

This commit is contained in:
Matthew Saunders Brown 2024-11-22 14:20:38 -08:00
parent feb6276e9e
commit 1d71c4f242
3 changed files with 6 additions and 6 deletions

View File

@ -3,10 +3,10 @@ apt-get install -y sudo
useradd --no-create-home --home-dir /srv/www/html/panel --shell /usr/sbin/nologin --system --user-group vpanel
cp bin/vpanel-verify-access.sh /usr/local/bin/
chmod 755 /usr/local/bin/vpanel-verify-access.sh
cp sbin/vhost-php-fpm-socket-helper.sh /usr/local/sbin
chmod 755 /usr/local/sbin/vhost-php-fpm-socket-helper.sh
cp systemd/vhost-php-fpm-socket-helper.service /usr/local/lib/systemd/system/
chmod 644 /usr/local/lib/systemd/system/vhost-php-fpm-socket-helper.service
cp sbin/vpanel-php-fpm-socket-helper.sh /usr/local/sbin
chmod 755 /usr/local/sbin/vpanel-php-fpm-socket-helper.sh
cp systemd/vpanel-php-fpm-socket-helper.service /usr/local/lib/systemd/system/
chmod 644 /usr/local/lib/systemd/system/vpanel-php-fpm-socket-helper.service
# set PHP version
PHP_MAJOR_VERSION=`php -r "echo PHP_MAJOR_VERSION;"`
PHP_MINOR_VERSION=`php -r "echo PHP_MINOR_VERSION;"`
@ -23,7 +23,7 @@ update-alternatives --install /run/php/php-fpm-vpanel.sock php-fpm-vpanel.sock /
a2enconf vpanel
service php$phpVersion-fpm restart
service apache2 restart
systemctl enable vhost-php-fpm-socket-helper.service
systemctl enable vpanel-php-fpm-socket-helper.service
cp -a panel /srv/www/html/
mkdir /srv/www/html/panel/tmp
git clone https://github.com/bcosca/fatfree-core.git /srv/www/html/panel/f3

View File

@ -6,7 +6,7 @@ Type=oneshot
# sleep to give time for php-fpm to start first
# testing showed 2 seconds enough, using 5 for exra buffer
ExecStartPre=sleep 5
ExecStart=/usr/local/sbin/vhost-php-fpm-socket-helper.sh
ExecStart=/usr/local/sbin/vpanel-php-fpm-socket-helper.sh
[Install]
WantedBy=multi-user.target