mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
commit
b972f87bd0
2 changed files with 6 additions and 0 deletions
|
@ -56,6 +56,9 @@ echo "Setting permission..."
|
||||||
sudo chown -R root: $final_path
|
sudo chown -R root: $final_path
|
||||||
sudo find $final_path -type f | xargs sudo chmod 644
|
sudo find $final_path -type f | xargs sudo chmod 644
|
||||||
sudo find $final_path -type d | xargs sudo chmod 755
|
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
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
echo "Setting up nginx configuration..."
|
echo "Setting up nginx configuration..."
|
||||||
|
|
|
@ -47,6 +47,9 @@ echo "Setting permission..."
|
||||||
sudo chown -R root: $final_path
|
sudo chown -R root: $final_path
|
||||||
sudo find $final_path -type f | xargs sudo chmod 644
|
sudo find $final_path -type f | xargs sudo chmod 644
|
||||||
sudo find $final_path -type d | xargs sudo chmod 755
|
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
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
echo "Setting up nginx configuration..."
|
echo "Setting up nginx configuration..."
|
||||||
|
|
Loading…
Reference in a new issue