diff --git a/README.md b/README.md index e825628..abafb27 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Self-hosted remote torrent client -**Shipped version:** 1.3.6~ynh2 +**Shipped version:** 1.3.6~ynh3 diff --git a/README_fr.md b/README_fr.md index 3ce1b17..daf14c9 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Client torrent distant auto-hébergé -**Version incluse :** 1.3.6~ynh2 +**Version incluse :** 1.3.6~ynh3 diff --git a/manifest.json b/manifest.json index 785b3a4..f5d60a6 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self-hosted remote torrent client", "fr": "Client torrent distant auto-hébergé" }, - "version": "1.3.6~ynh2", + "version": "1.3.6~ynh3", "url": "https://github.com/boypt/simple-torrent", "upstream": { "license": "AGPL-3.0-only", diff --git a/scripts/upgrade b/scripts/upgrade index af6a90b..3e414b7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,6 +118,16 @@ ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="../conf/config.default.yml" --destination="$final_path/config.yml" +#================================================= +# CREATE DIRECTORIES +#================================================= + +mkdir -p /home/yunohost.app/$app/{torrents,downloads} + +chown -R $app:www-data /home/yunohost.app/$app +chmod 755 /home/yunohost.app/$app/{torrents,downloads} + +#================================================= #================================================= # SETUP SYSTEMD #=================================================