1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00
This commit is contained in:
ericgaspar 2024-01-13 13:44:05 +01:00
parent acb157c547
commit 5794b5a64c
5 changed files with 6 additions and 11 deletions

View file

@ -1,5 +1,5 @@
system:
configured_version: '0.9.3'
configured_version: '0.9.4'
timezone: '__TIMEZONE__'
card_enabled: true
cal_enabled: true

View file

@ -21,8 +21,11 @@ code = "https://github.com/sabre-io/Baikal"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = false
ldap = true
sso = false
disk = "50M"
ram.build = "100M"
ram.runtime = "50M"

View file

@ -41,7 +41,6 @@ ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash"
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=8
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
@ -52,10 +51,8 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -74,7 +71,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
path=${path%/}
ynh_add_config --template="../conf/baikal.yaml" --destination="$install_dir/config/baikal.yaml"
ynh_add_config --template="baikal.yaml" --destination="$install_dir/config/baikal.yaml"
chown $app: "$install_dir/config/baikal.yaml"
chmod 640 "$install_dir/config/baikal.yaml"

View file

@ -14,10 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================

View file

@ -23,7 +23,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config/baikal.yaml"
fi
@ -35,10 +34,8 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
# Create a dedicated PHP-FPM config
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -55,7 +52,7 @@ then
timezone=$(cat /etc/timezone)
path=${path%/}
ynh_add_config --template="../conf/baikal.yaml" --destination="$install_dir/config/baikal.yaml"
ynh_add_config --template="baikal.yaml" --destination="$install_dir/config/baikal.yaml"
chown $app: "$install_dir/config/baikal.yaml"
chmod 640 "$install_dir/config/baikal.yaml"
fi