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

Merge pull request #9 from buzuck/master

[Fix] mysql password leak
This commit is contained in:
Alexis Gavoty 2014-07-23 10:05:37 +02:00
commit b972f87bd0
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..."