mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
remove php-fpm config
This commit is contained in:
parent
139544546a
commit
0a57bec8ba
4 changed files with 1 additions and 37 deletions
|
@ -1,4 +0,0 @@
|
||||||
; Additional php.ini defines, specific to this pool of workers.
|
|
||||||
|
|
||||||
php_admin_value[upload_max_filesize] = 50M
|
|
||||||
php_admin_value[post_max_size] = 50M
|
|
|
@ -15,18 +15,12 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
random_key=$(ynh_string_random --length=32)
|
random_key=$(ynh_string_random --length=32)
|
||||||
email=$(ynh_user_get_info --username=$admin --key="mail")
|
email=$(ynh_user_get_info --username=$admin --key="mail")
|
||||||
fpm_footprint="low"
|
|
||||||
fpm_free_footprint=0
|
|
||||||
fpm_usage="low"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=random_key --value=$random_key
|
ynh_app_setting_set --app=$app --key=random_key --value=$random_key
|
||||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
|
||||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
|
||||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
|
@ -48,12 +42,6 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# PHP-FPM CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
|
|
||||||
|
|
||||||
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
@ -107,7 +95,7 @@ pushd "$install_dir"
|
||||||
ynh_app_setting_set --app=$app --key=mobile_key --value=$mobile_key
|
ynh_app_setting_set --app=$app --key=mobile_key --value=$mobile_key
|
||||||
ynh_secure_remove --file="$install_dir/key.txt"
|
ynh_secure_remove --file="$install_dir/key.txt"
|
||||||
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan config:cache
|
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan config:cache
|
||||||
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan optimize:clear
|
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan optimize:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
|
|
|
@ -17,9 +17,6 @@ ynh_script_progression --message="Removing system configurations related to $app
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
# Remove the dedicated PHP-FPM config
|
|
||||||
ynh_remove_fpm_config
|
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_nodejs
|
ynh_remove_nodejs
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating $app's configuration files..." --weight=1
|
ynh_script_progression --message="Updating $app's configuration files..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
|
||||||
ynh_add_fpm_config
|
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
|
@ -108,26 +105,12 @@ pushd "$install_dir"
|
||||||
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan config:cache
|
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan config:cache
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#if ynh_version_gt "2.15.0" "${previous_version}" ; then
|
|
||||||
# ynh_script_progression --message="Upgrading for 2.15.0..."
|
|
||||||
# pushd "$install_dir"
|
|
||||||
# ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan monica:moveavatarstophotosdirectory
|
|
||||||
# popd
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum --file="$install_dir/.env"
|
ynh_store_file_checksum --file="$install_dir/.env"
|
||||||
|
|
||||||
chmod 400 "$install_dir/.env"
|
chmod 400 "$install_dir/.env"
|
||||||
chown $app:$app "$install_dir/.env"
|
chown $app:$app "$install_dir/.env"
|
||||||
|
|
||||||
#==================================================
|
|
||||||
# FIX PHP VERSION
|
|
||||||
#==================================================
|
|
||||||
ynh_script_progression --message="Fixing PHP version in package.json..." --weight=1
|
|
||||||
|
|
||||||
ynh_replace_string --target_file="$install_dir/package.json" --match_string="php artisan lang:generate -vvv" --replace_string="php$phpversion artisan lang:generate -vvv"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL THE CRON FILE
|
# INSTALL THE CRON FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue