From 724f90ebab1b8c7061dd4ae3b0a070a8799d4eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 10 May 2021 09:43:54 +0200 Subject: [PATCH] Testing (#39) * Upgrade to version 1.2.23 --- README.md | 2 +- README_fr.md | 2 +- conf/arm64.src | 4 ++-- conf/x86_64.src | 4 ++-- manifest.json | 2 +- scripts/install | 11 +++++------ scripts/restore | 7 ++++--- scripts/upgrade | 9 ++++----- 8 files changed, 20 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 22534bb..bfb6046 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/inst Simple Torrent is a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. -**Shipped version:** 1.2.22 +**Shipped version:** 1.2.23 ## Screenshots diff --git a/README_fr.md b/README_fr.md index c7bddb3..e3e7fb8 100644 --- a/README_fr.md +++ b/README_fr.md @@ -12,7 +12,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/install) Simple Torrent est un client torrent distant auto-hébergé, écrit en Go (golang). Démarrez des torrents à distance, téléchargez des ensembles de fichiers sur le disque local du serveur, qui sont ensuite récupérables ou diffusables via HTTP. -**Version incluse :** 1.2.22 +**Version incluse :** 1.2.23 ## Captures d'écran diff --git a/conf/arm64.src b/conf/arm64.src index 7570884..7001de8 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.22/cloud-torrent_linux_arm64_static.gz -SOURCE_SUM=27e5a408a6efc25a672b5b03f3522268d29b5181ab4880b393b4ae904bec73a3 +SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.23/cloud-torrent_linux_arm64_static.gz +SOURCE_SUM=28a752920f03a18e5830d4d1e2b2eff15cf6872fed6b83c56232c72acee05f12 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=gz SOURCE_IN_SUBDIR=false diff --git a/conf/x86_64.src b/conf/x86_64.src index 3829f2a..2fca0bd 100644 --- a/conf/x86_64.src +++ b/conf/x86_64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.22/cloud-torrent_linux_amd64_static.gz -SOURCE_SUM=8bc0bc3fe2a1e0d3c284dca868fe869588fece96562ef67f361fa6e53382b6b6 +SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.23/cloud-torrent_linux_amd64_static.gz +SOURCE_SUM=4df4987bf027d6f72b8e54062eda35b34c9af15ea73cbde0c4940aa843a7e280 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=gz SOURCE_IN_SUBDIR=false diff --git a/manifest.json b/manifest.json index 54c659d..e547507 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.2.22~ynh1", + "version": "1.2.23~ynh1", "url": "https://github.com/boypt/simple-torrent", "license": "AGPL-3.0-only", "maintainer": { diff --git a/scripts/install b/scripts/install index adda725..a5a9dcc 100644 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=path --value=$path_url #================================================= # STANDARD MODIFICATIONS @@ -119,8 +119,6 @@ ynh_add_config --template="../conf/config.default.json" --destination="$final_pa #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service" - ynh_add_systemd_config #================================================= @@ -131,10 +129,11 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." --weight=1 # Set permissions to app files -chown -R $app: $final_path -chown -R $app: /home/yunohost.app/$app +chown -R $app:www-data $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data /home/yunohost.app/$app chmod +x $final_path/$app -chmod -R 755 /home/yunohost.app/$app/{torrents,downloads} +chmod 755 /home/yunohost.app/$app/{torrents,downloads} #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/restore b/scripts/restore index 9565f98..79bec8c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -83,10 +83,11 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring user rights..." # Set permissions to app files -chown -R $app: $final_path -chown -R $app: /home/yunohost.app/$app +chown -R $app:www-data $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data /home/yunohost.app/$app chmod +x $final_path/$app -chmod -R 755 /home/yunohost.app/$app/{torrents,downloads} +chmod 755 /home/yunohost.app/$app/{torrents,downloads} #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 7812eac..86475bf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,8 +128,6 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=2 -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service" - ynh_add_systemd_config #================================================= @@ -139,10 +137,11 @@ ynh_add_systemd_config #================================================= ynh_script_progression --message="Securing files and directories..." -chown -R $app: $final_path -chown -R $app: /home/yunohost.app/$app +chown -R $app:www-data $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data /home/yunohost.app/$app chmod +x $final_path/$app -chmod -R 755 /home/yunohost.app/$app/{torrents,downloads} +chmod 755 /home/yunohost.app/$app/{torrents,downloads} #================================================= # INTEGRATE SERVICE IN YUNOHOST