renamed vhost-php-fpm-socket-helper vpanel-php-fpm-socket-helper
This commit is contained in:
parent
feb6276e9e
commit
1d71c4f242
10
install.sh
10
install.sh
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user