mirror of
https://github.com/YunoHost-Apps/xbackbone_ynh.git
synced 2024-09-03 19:15:53 +02:00
fix
This commit is contained in:
parent
50c78953ed
commit
1c10e5c79c
5 changed files with 10 additions and 8 deletions
|
@ -21,6 +21,6 @@ return array(
|
||||||
'base_domain' => 'dc=yunohost,dc=org',
|
'base_domain' => 'dc=yunohost,dc=org',
|
||||||
'user_domain' => 'ou=Users',
|
'user_domain' => 'ou=Users',
|
||||||
'rdn_attribute' => 'uid=',
|
'rdn_attribute' => 'uid=',
|
||||||
),
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; Additional php.ini defines, specific to this pool of workers.
|
; Additional php.ini defines, specific to this pool of workers.
|
||||||
|
|
||||||
php_admin_value[upload_max_filesize] = 50M
|
php_admin_value[upload_max_filesize] = 1G
|
||||||
php_admin_value[post_max_size] = 50M
|
php_admin_value[post_max_size] = 1G
|
||||||
|
|
|
@ -6,7 +6,7 @@ location __PATH__/ {
|
||||||
|
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
#client_max_body_size 50M;
|
#client_max_body_size 1G;
|
||||||
|
|
||||||
try_files $uri $uri/ __PATH__/index.php;
|
try_files $uri $uri/ __PATH__/index.php;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=1
|
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
mkdir "$install_dir/storage"
|
mkdir "$install_dir/storage"
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -24,7 +26,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
|
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config --usage=low --footprint=low
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -39,7 +41,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
ynh_add_config --template="../conf/config_old.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.php"
|
chmod 400 "$install_dir/config.php"
|
||||||
chown $app:$app "$install_dir/config.php"
|
chown $app:$app "$install_dir/config.php"
|
||||||
|
|
|
@ -24,7 +24,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir" --keep="config.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
@ -35,7 +35,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config --usage=low --footprint=low
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue