1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Do not add swap if in CI

This commit is contained in:
tituspijean 2022-08-05 10:50:45 +02:00
parent e85a44b7bd
commit 93177dfa7d
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 9 additions and 3 deletions

View file

@ -126,7 +126,9 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
ynh_print_info --message="Adding swap..." ynh_print_info --message="Adding swap..."
ynh_add_swap --size=$swap_needed if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
ynh_add_swap --size=$swap_needed
fi
#================================================= #=================================================
# INSTALL COMPOSER DEPENDENCIES # INSTALL COMPOSER DEPENDENCIES

View file

@ -105,7 +105,9 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
#================================================= #=================================================
ynh_script_progression --message="Adding swap..." ynh_script_progression --message="Adding swap..."
ynh_add_swap --size=$swap_needed if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
ynh_add_swap --size=$swap_needed
fi
#================================================= #=================================================
# RESTORE THE LOGROTATE CONFIGURATION # RESTORE THE LOGROTATE CONFIGURATION

View file

@ -168,7 +168,9 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
ynh_script_progression --message="Adding swap..." ynh_script_progression --message="Adding swap..."
ynh_add_swap --size=$swap_needed if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
ynh_add_swap --size=$swap_needed
fi
#================================================= #=================================================
# COMPOSER AND FLARUM UPGRADE # COMPOSER AND FLARUM UPGRADE