From 0bc617d5bbb95d23800a8f6c248347ff7e563bda Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 2 Nov 2021 05:34:53 -0400 Subject: [PATCH] Update install.sh --- install.sh | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 6cc79de..60ee267 100644 --- a/install.sh +++ b/install.sh @@ -729,7 +729,8 @@ install_phpmyadmin(){ cd /var/www/pterodactyl/public/phpmyadmin || exit SERVER_IP=$(dig +short myip.opendns.com @resolver1.opendns.com -4) BOWFISH=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 34 | head -n 1` - bash -c 'cat > /var/www/pterodactyl/public/phpMyAdmin/config.inc.php' < /etc/phpMyAdmin/config.inc.php' < EOF - output "Installation completed." - if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then - 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 - chown -R nginx:nginx * /var/www/pterodactyl - semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?" - restorecon -R /var/www/pterodactyl + chown -R nginx:nginx /var/www/pterodactyl + if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then + bash -c 'cat > /etc/phpmyadmin/config.inc.php' < +EOF + chown -R www-data:www-data /var/www/pterodactyl fi }