mirror of
https://github.com/YunoHost-Apps/psitransfer_ynh.git
synced 2024-09-03 20:16:06 +02:00
commit
adc12a2885
8 changed files with 14 additions and 21 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = [""]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue