1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00

Add PHP extensions

This commit is contained in:
ericgaspar 2020-09-04 19:02:51 +02:00
parent 696fb04665
commit 0efae29f81
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 31 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#=================================================
# PERSONAL HELPERS
#=================================================
pkg_dependencies="php${YNH_DEFAULT_PHP_VERSION}cURL php${YNH_DEFAULT_PHP_VERSION}iconv php${YNH_DEFAULT_PHP_VERSION}json php${YNH_DEFAULT_PHP_VERSION}libxml php${YNH_DEFAULT_PHP_VERSION}dom php${YNH_DEFAULT_PHP_VERSION}openssl php${YNH_DEFAULT_PHP_VERSION}DateTime php${YNH_DEFAULT_PHP_VERSION}PCRE php${YNH_DEFAULT_PHP_VERSION}SPL"
#=================================================
# EXPERIMENTAL HELPERS

View file

@ -52,6 +52,13 @@ ynh_app_setting_set --app=$app --key=lang --value=$lang
ynh_app_setting_set --app=$app --key=password --value=$password
ynh_app_setting_set --app=$app --key=ldap --value=$ldap
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# STANDARD MODIFICATIONS
#=================================================

View file

@ -30,6 +30,14 @@ ynh_script_progression --message="Removing the MySQL database..." --weight=2
# Remove a database if it exists, along with the associated user
ynh_mysql_remove_db --db_user=$db_name --db_name=$db_name
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=1
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
#=================================================
# REMOVE APP MAIN DIR
#=================================================

View file

@ -84,6 +84,14 @@ chown -R $app: $final_path
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# RESTORE FAIL2BAN CONFIGURATION
#=================================================

View file

@ -98,6 +98,13 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER
#=================================================