1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simple-torrent_ynh.git synced 2024-09-03 20:26:18 +02:00

Fix linter warning --needs_exposed_ports $peer_port (#11)

* Fix linter warning
This commit is contained in:
Éric Gaspar 2020-12-04 23:40:15 +01:00 committed by GitHub
parent 295026023f
commit 7228ed8d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -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": [

View file

@ -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

View file

@ -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

View file

@ -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