mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
fix
This commit is contained in:
parent
f0c52487c2
commit
c741cbfd7b
3 changed files with 6 additions and 26 deletions
|
@ -5,7 +5,7 @@ name = "Galette"
|
|||
description.en = "Membership management web application for non profit organizations"
|
||||
description.fr = "Outil de gestion d'adhérents et de cotisation en ligne pour associations"
|
||||
|
||||
version = "1.0.0~ynh3"
|
||||
version = "1.0.3~ynh1"
|
||||
|
||||
maintainers = []
|
||||
|
||||
|
@ -49,8 +49,8 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://github.com/galette/galette/releases/download/1.0.0rc3/galette-1.0.0-rc3-20231122-a9c2ed838d.1.tar.bz2"
|
||||
sha256 = "b4d5ed0c47baf03d5f1be69e3ba25b10ece5e22e62c308b4bc9867f4003a0a55"
|
||||
url = "https://github.com/galette/galette/archive/refs/tags/1.0.3.tar.gz"
|
||||
sha256 = "f546393c1b1fd989542a646a34dc679b8fd9716d30054b60ba2846fd0d187115"
|
||||
autoupdate.strategy = "latest_github_tag"
|
||||
|
||||
[resources.system_user]
|
||||
|
|
|
@ -22,23 +22,13 @@ 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 THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC BACKUP
|
||||
#=================================================
|
||||
# BACKUP LOGROTATE
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -15,22 +15,12 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
timezone="$(cat /etc/timezone)"
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="galette/config/config.inc.php galette/data galette/plugins"
|
||||
fi
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="galette/config/config.inc.php galette/data galette/plugins"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue