mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-22 05:51:35 +01:00
commit
f525a0bfde
@ -1,7 +1,7 @@
|
||||
# All available README files by language
|
||||
|
||||
- [Read the README in English](README.md)
|
||||
- [Lee el README en español](README_es.md)
|
||||
- [Lea el README en español](README_es.md)
|
||||
- [Irakurri README euskaraz](README_eu.md)
|
||||
- [Lire le README en français](README_fr.md)
|
||||
- [Le o README en galego](README_gl.md)
|
||||
|
@ -20,7 +20,7 @@ A fork of Mozilla's Firefox Send. Mozilla discontinued Send, this fork is a comm
|
||||
Send is a file sharing experiment which allows you to send encrypted files to other users.
|
||||
|
||||
|
||||
**Shipped version:** 3.4.23~ynh3
|
||||
**Shipped version:** 3.4.23~ynh4
|
||||
|
||||
**Demo:** <https://send.vis.ee/>
|
||||
|
||||
|
@ -20,7 +20,7 @@ A fork of Mozilla's Firefox Send. Mozilla discontinued Send, this fork is a comm
|
||||
Send is a file sharing experiment which allows you to send encrypted files to other users.
|
||||
|
||||
|
||||
**Versión actual:** 3.4.23~ynh3
|
||||
**Versión actual:** 3.4.23~ynh4
|
||||
|
||||
**Demo:** <https://send.vis.ee/>
|
||||
|
||||
|
@ -20,7 +20,7 @@ A fork of Mozilla's Firefox Send. Mozilla discontinued Send, this fork is a comm
|
||||
Send is a file sharing experiment which allows you to send encrypted files to other users.
|
||||
|
||||
|
||||
**Paketatutako bertsioa:** 3.4.23~ynh3
|
||||
**Paketatutako bertsioa:** 3.4.23~ynh4
|
||||
|
||||
**Demoa:** <https://send.vis.ee/>
|
||||
|
||||
|
@ -20,7 +20,7 @@ Un fork du Firefox Send de Mozilla. Mozilla a arrêté Send, et ce fork est un e
|
||||
Send est une expérience de partage de fichiers qui permet d'envoyer des fichiers chiffrés à d'autres utilisateurs.
|
||||
|
||||
|
||||
**Version incluse :** 3.4.23~ynh3
|
||||
**Version incluse :** 3.4.23~ynh4
|
||||
|
||||
**Démo :** <https://send.vis.ee/>
|
||||
|
||||
|
@ -20,7 +20,7 @@ A fork of Mozilla's Firefox Send. Mozilla discontinued Send, this fork is a comm
|
||||
Send is a file sharing experiment which allows you to send encrypted files to other users.
|
||||
|
||||
|
||||
**Versión proporcionada:** 3.4.23~ynh3
|
||||
**Versión proporcionada:** 3.4.23~ynh4
|
||||
|
||||
**Demo:** <https://send.vis.ee/>
|
||||
|
||||
|
@ -20,7 +20,7 @@ A fork of Mozilla's Firefox Send. Mozilla discontinued Send, this fork is a comm
|
||||
Send is a file sharing experiment which allows you to send encrypted files to other users.
|
||||
|
||||
|
||||
**分发版本:** 3.4.23~ynh3
|
||||
**分发版本:** 3.4.23~ynh4
|
||||
|
||||
**演示:** <https://send.vis.ee/>
|
||||
|
||||
|
@ -7,7 +7,7 @@ name = "Send"
|
||||
description.en = "File sharing which allows to send encrypted files"
|
||||
description.fr = "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
|
||||
|
||||
version = "3.4.23~ynh3"
|
||||
version = "3.4.23~ynh4"
|
||||
|
||||
maintainers = []
|
||||
|
||||
|
@ -22,15 +22,11 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||
ynh_backup --src_path="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
|
||||
#=================================================
|
||||
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name="$app" --action="stop"
|
||||
ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
|
||||
|
||||
#=================================================
|
||||
# MODIFY URL IN NGINX CONF
|
||||
|
@ -45,7 +45,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
env_path="$PATH"
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
@ -10,10 +10,9 @@ source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# STANDARD REMOVE
|
||||
#=================================================
|
||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||
# REMOVE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||
|
||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if ynh_exec_warn_less yunohost service status "$app" >/dev/null
|
||||
|
@ -9,12 +9,6 @@
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
@ -34,14 +28,10 @@ ynh_remove_logrotate
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=10
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=10
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
|
||||
fi
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
@ -62,7 +52,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
env_path="$PATH"
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
@ -83,17 +72,13 @@ chown "$app:" "$install_dir/server/config.js"
|
||||
#=================================================
|
||||
# BUILD APP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install
|
||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" run build
|
||||
popd
|
||||
fi
|
||||
pushd "$install_dir"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install
|
||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" run build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
Loading…
Reference in New Issue
Block a user