1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
Éric Gaspar 2024-06-19 15:10:40 +02:00
parent 1203a597ec
commit 67fdbfff35
3 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -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"

View file

@ -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
#=================================================