mirror of
https://github.com/YunoHost-Apps/gancio_ynh.git
synced 2024-09-03 20:36:19 +02:00
1.16.0
This commit is contained in:
parent
aa3cd640dc
commit
b82a33ca76
3 changed files with 10 additions and 26 deletions
|
@ -6,7 +6,7 @@ name = "Gancio"
|
|||
description.en = "Shared agenda for local communities, federated with the fediverse"
|
||||
description.fr = "Agenda partagé pour les communautés locales, fédéré avec le fédiverse"
|
||||
|
||||
version = "1.15.5~ynh1"
|
||||
version = "1.16.0~ynh1"
|
||||
|
||||
maintainers = ["Lapineige"]
|
||||
|
||||
|
@ -49,7 +49,7 @@ ram.runtime = "50M"
|
|||
|
||||
[install.password]
|
||||
help.en = "Choose admin user password"
|
||||
help.fr = "Choisissez le mot de passe du compte d'administration."
|
||||
help.fr = "Choisissez le mot de passe du compte d'administration"
|
||||
type = "password"
|
||||
|
||||
[resources]
|
||||
|
@ -57,11 +57,11 @@ ram.runtime = "50M"
|
|||
[resources.sources]
|
||||
|
||||
[resources.sources.main]
|
||||
url = "https://framagit.org/les/gancio/-/releases/v1.15.5/downloads/gancio.tgz"
|
||||
sha256 = "34090ca1a132f983529fb7582dae9d9f707256c005721933c90ad1386fe238f0"
|
||||
url = "https://framagit.org/les/gancio/-/archive/v1.16.0/gancio-v1.16.0.tar.gz"
|
||||
sha256 = "21a53253f370ac45a5470b8f8e7fe6080e3ab3460dc10f6300f08fbfdf2099f9"
|
||||
|
||||
autoupdate.strategy = "latest_gitlab_release"
|
||||
autoupdate.asset = "^gancio.*.tgz$"
|
||||
autoupdate.asset = "^gancio-v*.tar.gz$"
|
||||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
|
@ -84,4 +84,4 @@ ram.runtime = "50M"
|
|||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
||||
|
|
@ -28,23 +28,13 @@ ynh_backup --src_path="$install_dir"
|
|||
ynh_backup --src_path="$data_dir" --is_big
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
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
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# STOP SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
@ -21,14 +19,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
|
|||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
|
||||
fi
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
|
Loading…
Reference in a new issue