1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glpi_ynh.git synced 2024-09-03 20:36:21 +02:00
This commit is contained in:
Éric Gaspar 2024-05-07 07:13:54 +02:00
parent b9cef79bdd
commit 72553e1688
3 changed files with 8 additions and 9 deletions

View file

@ -19,8 +19,11 @@ code = "https://github.com/glpi-project/glpi"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "200M"
ram.runtime = "50M"

View file

@ -31,7 +31,7 @@ ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
#=================================================
# SPECIFIC SETUP

View file

@ -18,14 +18,10 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# 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" --full_replace=1
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" #--full_replace=1
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -41,7 +37,7 @@ ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
#=================================================
# SPECIFIC UPGRADE