1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simple-torrent_ynh.git synced 2024-09-03 20:26:18 +02:00
* 4.3
This commit is contained in:
Éric Gaspar 2021-12-05 11:49:53 +01:00 committed by GitHub
parent 2bad1ff603
commit a646f376a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 17 deletions

View file

@ -30,7 +30,7 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang).
- Magnet RSS subscribing supported - Magnet RSS subscribing supported
**Shipped version:** 1.3.9~ynh2 **Shipped version:** 1.3.9~ynh3

View file

@ -26,7 +26,7 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang).
- Magnet RSS subscribing supported - Magnet RSS subscribing supported
**Version incluse :** 1.3.9~ynh2 **Version incluse :** 1.3.9~ynh3

View file

@ -1,11 +1,6 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__/; proxy_pass http://127.0.0.1:__PORT__/;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -6,7 +6,7 @@
"en": "Self-hosted remote torrent client", "en": "Self-hosted remote torrent client",
"fr": "Client torrent distant auto-hébergé" "fr": "Client torrent distant auto-hébergé"
}, },
"version": "1.3.9~ynh2", "version": "1.3.9~ynh3",
"url": "https://github.com/boypt/simple-torrent", "url": "https://github.com/boypt/simple-torrent",
"upstream": { "upstream": {
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
@ -19,7 +19,7 @@
"name": "eric_G" "name": "eric_G"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.7" "yunohost": ">= 4.3.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -55,12 +55,12 @@ ynh_secure_remove --file="$final_path"
# REMOVE DATA DIR # REMOVE DATA DIR
#================================================= #=================================================
# # Remove the app data directory with the command `yunohost app remove --purge` # Remove the data directory if --purge option is used
# if [ "${YNH_APP_PURGE:-0}" -eq 1 ] if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
# then then
# ynh_script_progression --message="Removing $app data directory..." --weight=2 ynh_script_progression --message="Removing app data directory..." --weight=1
# ynh_secure_remove --file="$datadir" ynh_secure_remove --file="$datadir"
# fi fi
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION

View file

@ -34,8 +34,7 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=2 ynh_script_progression --message="Validating restoration parameters..." --weight=2
test ! -d $final_path \ test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|| ynh_die --message="There is already a directory: $final_path "
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS