mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-29 09:16:53 +01:00
commit
56832928a5
5
.github/workflows/updater.sh
vendored
5
.github/workflows/updater.sh
vendored
@ -63,7 +63,7 @@ echo "Handling asset at $asset_url"
|
|||||||
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
||||||
# Leave $src empty to ignore the asset
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*".tar.gz"*)
|
"v"*".tar.gz"*)
|
||||||
src="app"
|
src="app"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -116,9 +116,6 @@ done
|
|||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Install moreutils, needed for sponge
|
|
||||||
sudo apt-get install moreutils
|
|
||||||
|
|
||||||
# Replace new version in manifest
|
# Replace new version in manifest
|
||||||
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json
|
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json
|
||||||
|
|
||||||
|
@ -19,7 +19,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.13~ynh2
|
**Shipped version:** 3.4.14~ynh1
|
||||||
|
|
||||||
**Demo:** https://send.vis.ee/
|
**Demo:** https://send.vis.ee/
|
||||||
|
|
||||||
|
@ -15,7 +15,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.13~ynh2
|
**Version incluse :** 3.4.14~ynh1
|
||||||
|
|
||||||
**Démo :** https://send.vis.ee/
|
**Démo :** https://send.vis.ee/
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
SOURCE_URL=https://github.com/timvisee/send/archive/refs/tags/v3.4.13.tar.gz
|
SOURCE_URL=https://github.com/timvisee/send/archive/refs/tags/v3.4.14.tar.gz
|
||||||
SOURCE_SUM=6b4e072f23325edd47666bdc6edf0e428c5e4ced22d8a5d3ffa9ca12be63b7cb
|
SOURCE_SUM=8c0234aedf8a2a67ef0a8f3b3cb72635c77d6496b0dd680ec2e70ae2f6b86c4d
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"en": "File sharing which allows to send encrypted files",
|
"en": "File sharing which allows to send encrypted files",
|
||||||
"fr": "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
|
"fr": "Partage de fichiers qui permet d'envoyer des fichiers chiffrés"
|
||||||
},
|
},
|
||||||
"version": "3.4.13~ynh2",
|
"version": "3.4.14~ynh1",
|
||||||
"url": "https://github.com/timvisee/send",
|
"url": "https://github.com/timvisee/send",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"name": "eric_G"
|
"name": "eric_G"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.2.4"
|
"yunohost": ">= 4.3.0"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
nodejs_version=15
|
nodejs_version=16
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
@ -47,7 +47,11 @@ ynh_backup --src_path="$final_path"
|
|||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC BACKUP
|
# BACKUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP SYSTEMD
|
# BACKUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -142,6 +142,14 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
|||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring log rotation..." --weight=1
|
||||||
|
|
||||||
|
# Use logrotate to manage application logfile(s)
|
||||||
|
ynh_use_logrotate
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -41,6 +41,14 @@ ynh_script_progression --message="Stopping and removing the systemd service..."
|
|||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE LOGROTATE CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing logrotate configuration..." --weight=1
|
||||||
|
|
||||||
|
# Remove the app-specific logrotate config
|
||||||
|
ynh_remove_logrotate
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -85,6 +85,13 @@ ynh_script_progression --message="Restoring the systemd configuration..." --weig
|
|||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -131,6 +131,14 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
|||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1
|
||||||
|
|
||||||
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user