mirror of
https://github.com/YunoHost-Apps/drupal7_ynh.git
synced 2024-09-03 18:26:19 +02:00
reorder php install
This commit is contained in:
parent
9a0d82727a
commit
1ec9488333
3 changed files with 21 additions and 24 deletions
|
@ -93,6 +93,13 @@ ynh_print_info --message="Configuring system user..."
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL PHP 7.2
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info --message="Installing PHP 7.2..."
|
||||||
|
|
||||||
|
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -111,14 +118,6 @@ ynh_print_info --message="Creating final path..."
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
mkdir -p "$final_path"
|
mkdir -p "$final_path"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INSTALL PHP 7.2
|
|
||||||
#=================================================
|
|
||||||
ynh_print_info --message="Installing PHP 7.2..."
|
|
||||||
|
|
||||||
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
|
||||||
ynh_systemd_action --service_name=php7.2-fpm --action=reload
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DRUSH ALIAS
|
# CREATE DRUSH ALIAS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -72,6 +72,13 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REINSTALL PHP
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info --message="Reinstalling php..."
|
||||||
|
|
||||||
|
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -103,14 +110,6 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/cron.d/$app"
|
ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REINSTALL PHP
|
|
||||||
#=================================================
|
|
||||||
ynh_print_info --message="Reinstalling php..."
|
|
||||||
|
|
||||||
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
|
||||||
ynh_systemd_action --service_name=php7.2-fpm --action=reload
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -98,6 +98,13 @@ ynh_print_info --message="Making sure dedicated system user exists..."
|
||||||
# Create a dedicated user (if not existing)
|
# Create a dedicated user (if not existing)
|
||||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPDATE PHP
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info --message="Updating PHP..."
|
||||||
|
|
||||||
|
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -108,14 +115,6 @@ ynh_add_fpm_config --phpversion="7.2"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
|
||||||
# UPDATE PHP
|
|
||||||
#=================================================
|
|
||||||
ynh_print_info --message="Updating PHP..."
|
|
||||||
|
|
||||||
ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
|
|
||||||
ynh_systemd_action --service_name=php7.2-fpm --action=reload
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE COMPOSER
|
# UPDATE COMPOSER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue