From eb6bffee645f42c1e3dae867f03fad7d0120c7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 26 Sep 2023 22:08:18 +0200 Subject: [PATCH 1/7] cleaning --- doc/DESCRIPTION.md | 1 - doc/DESCRIPTION_fr.md | 2 +- scripts/change_url | 4 ++-- scripts/install | 2 +- scripts/upgrade | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 8a7ffc9..2c90b3f 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -2,7 +2,6 @@ Simple open source self-hosted file sharing solution. It's an alternative to pai ### Features: -- No accounts, no logins - Mobile friendly responsive interface - Resumable up- and downloads ([tus.io](https://tus.io)) - Set an expire-time for your upload bucket diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index e1d1c04..11dc26b 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -1,6 +1,6 @@ Solution simple de partage de fichiers auto-hébergée open source. PsiTransfer est une alternative aux services payants comme Dropbox, WeTransfer. -### Caractéristiques: +### Caractéristiques : - Pas de compte, pas de connexion - Interface réactive adaptée aux mobiles diff --git a/scripts/change_url b/scripts/change_url index d4cbdc4..20af7ab 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -39,8 +39,8 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Updating a configuration file..." -domain=$new_domain -path=$new_path +#domain=$new_domain +#path=$new_path ynh_add_config --template="../conf/config.production.js" --destination="$install_dir/config.production.js" diff --git a/scripts/install b/scripts/install index c87d2b8..20e784a 100644 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ ynh_script_progression --message="Installing $app..." --weight=1 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --production + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --production popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 8445e85..f38df22 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,7 +73,7 @@ ynh_script_progression --message="Upgrading $app..." --weight=1 pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --production + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --production popd #================================================= From 630baff3d86d14384db409cac5198143102fd627 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 26 Sep 2023 20:08:22 +0000 Subject: [PATCH 2/7] Auto-update README --- README.md | 1 - README_fr.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 27b5786..76202ff 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ Simple open source self-hosted file sharing solution. It's an alternative to pai ### Features: -- No accounts, no logins - Mobile friendly responsive interface - Resumable up- and downloads ([tus.io](https://tus.io)) - Set an expire-time for your upload bucket diff --git a/README_fr.md b/README_fr.md index 83455ea..6b89f0b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Solution simple de partage de fichiers auto-hébergée open source. PsiTransfer est une alternative aux services payants comme Dropbox, WeTransfer. -### Caractéristiques: +### Caractéristiques : - Pas de compte, pas de connexion - Interface réactive adaptée aux mobiles From 03124ff04a01297ad2ef8eff637bc2a69ee769f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 26 Sep 2023 22:08:43 +0200 Subject: [PATCH 3/7] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 3019863..72450c4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "PsiTransfer" description.en = "Simple file sharing solution" description.fr = "Solution simple de partage de fichiers" -version = "2.1.2~ynh1" +version = "2.1.2~ynh2" maintainers = [""] From 1ae29eeb1a6197ab234c556b33fd9655fae5eb67 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 26 Sep 2023 20:08:56 +0000 Subject: [PATCH 4/7] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76202ff..dc40524 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Simple open source self-hosted file sharing solution. It's an alternative to pai - `/admin` Page lists bucket information (_disabled until you set `adminPass` config value_) -**Shipped version:** 2.1.2~ynh1 +**Shipped version:** 2.1.2~ynh2 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 6b89f0b..ca8fee8 100644 --- a/README_fr.md +++ b/README_fr.md @@ -29,7 +29,7 @@ Solution simple de partage de fichiers auto-hébergée open source. PsiTransfer - La page `/admin` répertorie les informations sur le compartiment (_disabled jusqu'à ce que vous définissiez la valeur de configuration `adminPass`_) -**Version incluse :** 2.1.2~ynh1 +**Version incluse :** 2.1.2~ynh2 ## Captures d’écran From ce641426cdd0c57742b8435939052d120b626593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 26 Sep 2023 22:09:01 +0200 Subject: [PATCH 5/7] Update DESCRIPTION_fr.md --- doc/DESCRIPTION_fr.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index 11dc26b..d71813c 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -2,7 +2,6 @@ Solution simple de partage de fichiers auto-hébergée open source. PsiTransfer ### Caractéristiques : -- Pas de compte, pas de connexion - Interface réactive adaptée aux mobiles - Mises à jour et téléchargements pouvant être repris ([tus.io](https://tus.io)) - Définissez une heure d'expiration pour votre bucket de téléchargement From 51ae046b56a14dc2121689befd3c54b362bafe03 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 26 Sep 2023 20:09:13 +0000 Subject: [PATCH 6/7] Auto-update README --- README_fr.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index ca8fee8..afefd49 100644 --- a/README_fr.md +++ b/README_fr.md @@ -20,7 +20,6 @@ Solution simple de partage de fichiers auto-hébergée open source. PsiTransfer ### Caractéristiques : -- Pas de compte, pas de connexion - Interface réactive adaptée aux mobiles - Mises à jour et téléchargements pouvant être repris ([tus.io](https://tus.io)) - Définissez une heure d'expiration pour votre bucket de téléchargement From b3c73c0d686588cf9a86822d5fda59031b182a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 26 Sep 2023 23:33:45 +0200 Subject: [PATCH 7/7] Update change_url --- scripts/change_url | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 20af7ab..0e8ee41 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." +ynh_script_progression --message="Loading installation settings..." --weight=1 password=$(ynh_app_setting_get --app=$app --key=password) @@ -21,14 +21,14 @@ password=$(ynh_app_setting_get --app=$app --key=password) #================================================= # STOP SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Stopping a systemd service..." +ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating NGINX web server configuration..." +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 ynh_change_url_nginx_config @@ -37,10 +37,7 @@ ynh_change_url_nginx_config #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating a configuration file..." - -#domain=$new_domain -#path=$new_path +ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_add_config --template="../conf/config.production.js" --destination="$install_dir/config.production.js" @@ -52,10 +49,10 @@ chown $app:$app "$install_dir/config.production.js" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." +ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT