mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
[fix] Prevent www-data to access progress folder.
This commit is contained in:
parent
c08151cb88
commit
0e5a22b545
2 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ sudo apt-get install transmission-daemon -y -qq
|
|||
# Make directories and set rights
|
||||
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
||||
sudo chown -R debian-transmission:www-data /home/yunohost.transmission/
|
||||
sudo chown -R debian-transmission:debian-transmission /home/yunohost.transmission/progress
|
||||
sudo find /home/yunohost.transmission/ -type f | while read LINE; do sudo chmod 640 "$LINE" ; done
|
||||
sudo find /home/yunohost.transmission/ -type d | while read LINE; do sudo chmod 750 "$LINE" ; done
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ sudo apt-get install transmission-daemon -y -qq
|
|||
# Make directories and set rights
|
||||
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
||||
sudo chown -R debian-transmission:www-data /home/yunohost.transmission/
|
||||
sudo chown -R debian-transmission:debian-transmission /home/yunohost.transmission/progress
|
||||
sudo find /home/yunohost.transmission/ -type f | while read LINE; do sudo chmod 640 "$LINE" ; done
|
||||
sudo find /home/yunohost.transmission/ -type d | while read LINE; do sudo chmod 750 "$LINE" ; done
|
||||
|
||||
|
|
Loading…
Reference in a new issue