mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
commit
4b143e242d
4 changed files with 11 additions and 6 deletions
|
@ -15,13 +15,13 @@ APP_DIR=__PATH__/
|
||||||
|
|
||||||
# enable or disable debug bar. By default it is disabled.
|
# enable or disable debug bar. By default it is disabled.
|
||||||
# Do note that this disable CSP!!
|
# Do note that this disable CSP!!
|
||||||
DEBUGBAR_ENABLED=true
|
DEBUGBAR_ENABLED=false
|
||||||
|
|
||||||
# enable or disable the v5 layout.
|
# enable or disable the v5 layout.
|
||||||
LIVEWIRE_ENABLED=true
|
LIVEWIRE_ENABLED=true
|
||||||
|
|
||||||
# enable or disable log viewer. By default it is enabled.
|
# 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)
|
# enable s3 bucket (required in addition to needing AWS_ACCESS_KEY_ID)
|
||||||
# S3_ENABLED=true
|
# S3_ENABLED=true
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
php_admin_value[upload_max_filesize] = 1G
|
php_admin_value[upload_max_filesize] = 1G
|
||||||
php_admin_value[post_max_size] = 1G
|
php_admin_value[post_max_size] = 1G
|
||||||
php_admin_value[max_execution_time] = 200
|
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
|
php_admin_value[memory_limit]= 256M
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ ynh_backup --src_path="$install_dir"
|
||||||
ynh_backup --src_path="$data_dir" --is_big
|
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"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
|
@ -34,6 +34,13 @@ chown -R "$app:www-data" "$data_dir"
|
||||||
chgrp "$app" -R "$data_dir/uploads"
|
chgrp "$app" -R "$data_dir/uploads"
|
||||||
chmod -R 2775 "$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
|
# 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_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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue