diff --git a/conf/.env b/conf/.env index e257a54..9f13d68 100644 --- a/conf/.env +++ b/conf/.env @@ -15,13 +15,13 @@ APP_DIR=__PATH__/ # enable or disable debug bar. By default it is disabled. # Do note that this disable CSP!! -DEBUGBAR_ENABLED=true +DEBUGBAR_ENABLED=false # enable or disable the v5 layout. LIVEWIRE_ENABLED=true # enable or disable log viewer. By default it is enabled. -LOG_VIEWER_ENABLED=true +LOG_VIEWER_ENABLED=false # enable s3 bucket (required in addition to needing AWS_ACCESS_KEY_ID) # S3_ENABLED=true diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index 03371cb..fe6403d 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -3,6 +3,6 @@ php_admin_value[upload_max_filesize] = 1G php_admin_value[post_max_size] = 1G php_admin_value[max_execution_time] = 200 -php_admin_value[upload_max_size] = 100M +php_admin_value[upload_max_size] = 1G php_admin_value[memory_limit]= 256M diff --git a/scripts/backup b/scripts/backup index a5522cf..c1767e6 100755 --- a/scripts/backup +++ b/scripts/backup @@ -28,7 +28,7 @@ ynh_backup --src_path="$install_dir" ynh_backup --src_path="$data_dir" --is_big #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" diff --git a/scripts/restore b/scripts/restore index 7061c6c..f9dea4d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -34,6 +34,13 @@ chown -R "$app:www-data" "$data_dir" chgrp "$app" -R "$data_dir/uploads" chmod -R 2775 "$data_dir/uploads" +#================================================= +# RESTORE THE MYSQL DATABASE +#================================================= +ynh_script_progression --message="Restoring the MySQL database..." --weight=1 + +ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql + #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= @@ -43,8 +50,6 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql - #================================================= # GENERIC FINALIZATION #=================================================