mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
Fix permissions update, otherwise getting command line too long for chmod
This commit is contained in:
parent
c704cf03b7
commit
5cc733fa07
2 changed files with 4 additions and 4 deletions
|
@ -53,8 +53,8 @@ sudo yunohost app setting phpmyadmin admin -v $admin
|
||||||
# Files owned by root, www-data can just read
|
# Files owned by root, www-data can just read
|
||||||
echo "Setting permission..."
|
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 -exec chmod 644 {} \;
|
||||||
sudo find $final_path -type d | xargs sudo chmod 755
|
sudo find $final_path -type d -exec chmod 755 {} \;
|
||||||
# config.inc.php contains sensitive data, restrict its access
|
# config.inc.php contains sensitive data, restrict its access
|
||||||
sudo chown root:www-data $final_path/config.inc.php
|
sudo chown root:www-data $final_path/config.inc.php
|
||||||
sudo chmod 640 $final_path/config.inc.php
|
sudo chmod 640 $final_path/config.inc.php
|
||||||
|
|
|
@ -49,8 +49,8 @@ sudo yunohost app setting phpmyadmin admin -v $admin
|
||||||
# Files owned by root, www-data can just read
|
# Files owned by root, www-data can just read
|
||||||
echo "Setting permission..."
|
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 -exec chmod 644 {} \;
|
||||||
sudo find $final_path -type d | xargs sudo chmod 755
|
sudo find $final_path -type d -exec chmod 755 {} \;
|
||||||
# config.inc.php contains sensitive data, restrict its access
|
# config.inc.php contains sensitive data, restrict its access
|
||||||
sudo chown root:www-data $final_path/config.inc.php
|
sudo chown root:www-data $final_path/config.inc.php
|
||||||
sudo chmod 640 $final_path/config.inc.php
|
sudo chmod 640 $final_path/config.inc.php
|
||||||
|
|
Loading…
Reference in a new issue