mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Fix
This commit is contained in:
parent
f91ad3ecbe
commit
ca06ee4f07
6 changed files with 10 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
; Additional php.ini defines, specific to this pool of workers.
|
||||
|
||||
php_value[upload_max_filesize] = 1G
|
||||
php_value[post_max_size] = 1G
|
||||
php_value[upload_max_filesize] = 500M
|
||||
php_value[post_max_size] = 500M
|
||||
php_value[default_charset] = UTF-8
|
||||
php_value[always_populate_raw_post_data] = -1
|
||||
|
|
|
@ -5,7 +5,7 @@ location __PATH__/ {
|
|||
alias __INSTALL_DIR__/www/;
|
||||
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file
|
||||
#client_max_body_size 1G;
|
||||
client_max_body_size 500M;
|
||||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
|
@ -16,6 +16,7 @@ location __PATH__/ {
|
|||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = __PATH__/robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
|
|
|
@ -5,7 +5,7 @@ location __PATH__/ {
|
|||
alias __INSTALL_DIR__/www/;
|
||||
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file
|
||||
#client_max_body_size 1G;
|
||||
client_max_body_size 500M;
|
||||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
|
@ -16,6 +16,7 @@ location __PATH__/ {
|
|||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = __PATH__/robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
|
|
|
@ -46,7 +46,7 @@ ynh_script_progression --message="Creating a new database..." --weight=4
|
|||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||
|
||||
# Reuse the previous password if existing
|
||||
db_pwd=$(grep "pass:" "$final_path/db_access.txt" | cut -d' ' -f2 2> /dev/null)
|
||||
db_pwd=$(grep "pass:" "$install_dir/db_access.txt" | cut -d' ' -f2 2> /dev/null)
|
||||
|
||||
ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name --db_pwd=$db_pwd
|
||||
|
||||
|
|
|
@ -38,7 +38,8 @@ fi
|
|||
ynh_script_progression --message="Removing the database..." --weight=9
|
||||
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
ynh_mysql_remove_db --db_user=$db_name --db_name=$db_name
|
||||
db_user=$db_name
|
||||
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
|
||||
|
||||
# Update the config of the app
|
||||
ynh_app_setting_set --app=$app --key=with_mysql --value=0
|
||||
|
|
|
@ -15,7 +15,7 @@ ynh_abort_if_errors
|
|||
# RETRIEVE ARGUMENTS
|
||||
#=================================================
|
||||
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
|
||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue