From 0e5a22b54519d037b4b9ecd4183fcaf0f825b571 Mon Sep 17 00:00:00 2001 From: opi Date: Thu, 4 Dec 2014 11:53:30 +0100 Subject: [PATCH] [fix] Prevent www-data to access progress folder. --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index cfd0350..fd5c5cd 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 4666283..2902e77 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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