mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-04 07:45:30 +01:00 
			
		
		
		
	@@ -1,7 +1,7 @@
 | 
				
			|||||||
# All available README files by language
 | 
					# All available README files by language
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [Read the README in English](README.md)
 | 
					- [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)
 | 
					- [Irakurri README euskaraz](README_eu.md)
 | 
				
			||||||
- [Lire le README en français](README_fr.md)
 | 
					- [Lire le README en français](README_fr.md)
 | 
				
			||||||
- [Le o README en galego](README_gl.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.
 | 
					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/>
 | 
					**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.
 | 
					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/>
 | 
					**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.
 | 
					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/>
 | 
					**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.
 | 
					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/>
 | 
					**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.
 | 
					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/>
 | 
					**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.
 | 
					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/>
 | 
					**演示:** <https://send.vis.ee/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ name = "Send"
 | 
				
			|||||||
description.en = "File sharing which allows to send encrypted files"
 | 
					description.en = "File sharing which allows to send encrypted files"
 | 
				
			||||||
description.fr = "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
 | 
					description.fr = "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version = "3.4.23~ynh3"
 | 
					version = "3.4.23~ynh4"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
maintainers = []
 | 
					maintainers = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,15 +22,11 @@ ynh_print_info --message="Declaring files to be backed up..."
 | 
				
			|||||||
ynh_backup --src_path="$install_dir"
 | 
					ynh_backup --src_path="$install_dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# BACKUP THE NGINX CONFIGURATION
 | 
					# SYSTEM CONFIGURATION
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
 | 
					ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
# BACKUP SYSTEMD
 | 
					 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
 | 
					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_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
 | 
					# MODIFY URL IN NGINX CONF
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2
 | 
				
			|||||||
# Create a dedicated NGINX config
 | 
					# Create a dedicated NGINX config
 | 
				
			||||||
ynh_add_nginx_config
 | 
					ynh_add_nginx_config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
env_path="$PATH"
 | 
					 | 
				
			||||||
# Create a dedicated systemd config
 | 
					# Create a dedicated systemd config
 | 
				
			||||||
ynh_add_systemd_config
 | 
					ynh_add_systemd_config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,10 +10,9 @@ source _common.sh
 | 
				
			|||||||
source /usr/share/yunohost/helpers
 | 
					source /usr/share/yunohost/helpers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# STANDARD REMOVE
 | 
					# REMOVE SYSTEM CONFIGURATIONS
 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
 | 
					 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					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`)
 | 
					# 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
 | 
					if ynh_exec_warn_less yunohost service status "$app" >/dev/null
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,12 +9,6 @@
 | 
				
			|||||||
source _common.sh
 | 
					source _common.sh
 | 
				
			||||||
source /usr/share/yunohost/helpers
 | 
					source /usr/share/yunohost/helpers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
# CHECK VERSION
 | 
					 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
upgrade_type=$(ynh_check_app_version_changed)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# STANDARD UPGRADE STEPS
 | 
					# STANDARD UPGRADE STEPS
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
@@ -34,14 +28,10 @@ ynh_remove_logrotate
 | 
				
			|||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
 | 
					# DOWNLOAD, CHECK AND UNPACK SOURCE
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression --message="Upgrading source files..." --weight=10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
 | 
					# Download, check integrity, uncompress and patch the source from app.src
 | 
				
			||||||
then
 | 
					ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
 | 
				
			||||||
	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
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
chmod -R o-rwx "$install_dir"
 | 
					chmod -R o-rwx "$install_dir"
 | 
				
			||||||
chown -R "$app:www-data" "$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
 | 
					# Create a dedicated NGINX config
 | 
				
			||||||
ynh_add_nginx_config
 | 
					ynh_add_nginx_config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
env_path="$PATH"
 | 
					 | 
				
			||||||
# Create a dedicated systemd config
 | 
					# Create a dedicated systemd config
 | 
				
			||||||
ynh_add_systemd_config
 | 
					ynh_add_systemd_config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -83,17 +72,13 @@ chown "$app:" "$install_dir/server/config.js"
 | 
				
			|||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# BUILD APP
 | 
					# BUILD APP
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
 | 
					pushd "$install_dir"
 | 
				
			||||||
then
 | 
						ynh_use_nodejs
 | 
				
			||||||
	ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
 | 
						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
 | 
				
			||||||
	pushd "$install_dir"
 | 
					popd
 | 
				
			||||||
		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
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# START SYSTEMD SERVICE
 | 
					# START SYSTEMD SERVICE
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user