mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-09 05:01:33 -05:00
Fixes for phpMyAdmin configuration
This commit is contained in:
parent
243293dcf1
commit
18ff77d725
@ -755,7 +755,10 @@ install_phpmyadmin(){
|
|||||||
\$cfg['CaptchaLoginPrivateKey'] = '6LcJcjwUAAAAALOcDJqAEYKTDhwELCkzUkNDQ0J5'
|
\$cfg['CaptchaLoginPrivateKey'] = '6LcJcjwUAAAAALOcDJqAEYKTDhwELCkzUkNDQ0J5'
|
||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
chmod 755 /etc/phpMyAdmin
|
||||||
|
chmod 644 /etc/phpMyAdmin/config.inc.php
|
||||||
chown -R nginx:nginx /var/www/pterodactyl
|
chown -R nginx:nginx /var/www/pterodactyl
|
||||||
|
chown -R nginx:nginx /var/lib/phpMyAdmin/temp
|
||||||
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
||||||
bash -c 'cat > /etc/phpmyadmin/config.inc.php' <<EOF
|
bash -c 'cat > /etc/phpmyadmin/config.inc.php' <<EOF
|
||||||
<?php
|
<?php
|
||||||
@ -780,7 +783,10 @@ EOF
|
|||||||
\$cfg['CaptchaLoginPrivateKey'] = '6LcJcjwUAAAAALOcDJqAEYKTDhwELCkzUkNDQ0J5'
|
\$cfg['CaptchaLoginPrivateKey'] = '6LcJcjwUAAAAALOcDJqAEYKTDhwELCkzUkNDQ0J5'
|
||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
chmod 755 /etc/phpmyadmin
|
||||||
|
chmod 644 /etc/phpmyadmin/config.inc.php
|
||||||
chown -R www-data:www-data /var/www/pterodactyl
|
chown -R www-data:www-data /var/www/pterodactyl
|
||||||
|
chown -R www-data:www-data /var/lib/phpmyadmin/temp
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user