mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 10:31:34 -05:00
Update install.sh
This commit is contained in:
parent
3ce8ee1fa0
commit
d1da04335a
@ -394,13 +394,12 @@ install_pterodactyl() {
|
|||||||
chown -R www-data:www-data * /var/www/pterodactyl
|
chown -R www-data:www-data * /var/www/pterodactyl
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
||||||
chown -R nginx:nginx * /var/www/pterodactyl
|
chown -R nginx:nginx * /var/www/pterodactyl
|
||||||
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?"
|
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?"
|
||||||
restorecon -R /var/www/pterodactyl
|
restorecon -R /var/www/pterodactyl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
output "Creating panel queue listeners..."
|
output "Creating panel queue listeners..."
|
||||||
(crontab -l ; echo "* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1")| crontab -
|
(crontab -l ; echo "* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1")| crontab -
|
||||||
service cron restart
|
|
||||||
|
|
||||||
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
||||||
cat > /etc/systemd/system/pteroq.service <<- 'EOF'
|
cat > /etc/systemd/system/pteroq.service <<- 'EOF'
|
||||||
|
Loading…
Reference in New Issue
Block a user