diff --git a/conf/settings.json b/conf/settings.json index 58e4911..cfb5518 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -12,7 +12,7 @@ "blocklist-url": "http://www.example.com/blocklist", "cache-size-mb": 4, "dht-enabled": true, - "download-dir": "/home/yunohost.app/transmission/completed", + "download-dir": "__DATADIR__/completed", "download-limit": 100, "download-limit-enabled": 0, "download-queue-enabled": true, @@ -20,7 +20,7 @@ "encryption": 1, "idle-seeding-limit": 30, "idle-seeding-limit-enabled": false, - "incomplete-dir": "/home/yunohost.app/transmission/progress", + "incomplete-dir": "__DATADIR__/progress", "incomplete-dir-enabled": true, "lpd-enabled": false, "max-peers-global": 200, @@ -70,6 +70,6 @@ "upload-limit-enabled": 0, "upload-slots-per-torrent": 14, "utp-enabled": true, - "watch-dir": "/home/yunohost.app/transmission/watched", + "watch-dir": "__DATADIR__/watched", "watch-dir-enabled": true } diff --git a/manifest.json b/manifest.json index f064c38..bd3a1d7 100644 --- a/manifest.json +++ b/manifest.json @@ -20,7 +20,7 @@ "email": "" }, "requirements": { - "yunohost": ">= 4.2.4" + "yunohost": ">= 4.3.0" }, "multi_instance": false, "services": [ diff --git a/scripts/upgrade b/scripts/upgrade index 3b74175..c24ffb4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,7 +97,6 @@ ynh_install_app_dependencies $pkg_dependencies # CREATE DIRECTORIES #================================================= - mkdir -p $datadir/{progress,completed,watched} chown -R debian-transmission:www-data $datadir