diff --git a/README.md b/README.md index 27b5786..dc40524 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 @@ -29,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 83455ea..afefd49 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,9 +18,8 @@ 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 - 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 @@ -29,7 +28,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 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..d71813c 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -1,8 +1,7 @@ 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 - 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 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 = [""] diff --git a/scripts/change_url b/scripts/change_url index d4cbdc4..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 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 #=================================================