1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

[Fix] mysql password leak

This commit is contained in:
Fol 2014-07-22 15:58:29 +02:00
parent 96d83ded0b
commit 7770785523
2 changed files with 6 additions and 0 deletions

View file

@ -56,6 +56,9 @@ echo "Setting permission..."
sudo chown -R root: $final_path
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755
# config.inc.php contains sensitive data, restrict its access
sudo chown root:www-data $final_path/config.inc.php
sudo chmod 640 $final_path/config.inc.php
# Modify Nginx configuration file and copy it to Nginx conf directory
echo "Setting up nginx configuration..."

View file

@ -47,6 +47,9 @@ echo "Setting permission..."
sudo chown -R root: $final_path
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755
# config.inc.php contains sensitive data, restrict its access
sudo chown root:www-data $final_path/config.inc.php
sudo chmod 640 $final_path/config.inc.php
# Modify Nginx configuration file and copy it to Nginx conf directory
echo "Setting up nginx configuration..."