diff --git a/manifest.json b/manifest.json index ce8b75a..5c5580c 100644 --- a/manifest.json +++ b/manifest.json @@ -6,14 +6,14 @@ "en": "Self-hosted remote torrent client", "fr": "Client torrent distant auto-hébergé" }, - "version": "1.2.12~ynh1", + "version": "1.2.12~ynh2", "url": "https://github.com/boypt/simple-torrent", "license": "AGPL-3.0-only", "maintainer": { - "name": "" + "name": "eric_G" }, "requirements": { - "yunohost": ">= 3.8.1" + "yunohost": ">= 4.0.0" }, "multi_instance": true, "services": [ diff --git a/scripts/install b/scripts/install index 1769e24..e64c2ed 100644 --- a/scripts/install +++ b/scripts/install @@ -143,7 +143,7 @@ chmod -R 755 /home/yunohost.$app/{torrents,downloads} #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description "Self-hosted remote torrent client" --log "/var/log/$app/$app.log" +yunohost service add $app --description="Self-hosted remote torrent client" --needs_exposed_ports="$peer_port" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 168adae..5aa74e4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -94,14 +94,14 @@ chmod -R 755 /home/yunohost.$app/{torrents,downloads} ynh_script_progression --message="Restoring the systemd configuration..." --weight=5 ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service +systemctl enable $app.service --quiet #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description "Self-hosted remote torrent client" --log "/var/log/$app/$app.log" +yunohost service add $app --description="Self-hosted remote torrent client" --needs_exposed_ports="$peer_port" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index ab2eb3c..d9089c0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -132,7 +132,7 @@ chmod -R 755 /home/yunohost.$app/{torrents,downloads} #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description "Self-hosted remote torrent client" --log "/var/log/$app/$app.log" +yunohost service add $app --description="Self-hosted remote torrent client" --needs_exposed_ports="$peer_port" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE