mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
Media upload size + trying with just as root
This commit is contained in:
parent
bc65e8fa3a
commit
4478d89c09
1 changed files with 5 additions and 4 deletions
|
@ -37,14 +37,15 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
# max file upload size
|
||||
MEDIA_UPLOAD_SIZE="${media_upload_size:0:2}000000" # convert the MB argument in bytes
|
||||
|
||||
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
# max file upload size
|
||||
MEDIA_UPLOAD_SIZE="${media_upload_size:0:2}000000" # convert the MB argument in bytes
|
||||
ynh_replace_string --match_string="UPLOAD_LIMIT=MEDIA_UPLOAD_SIZE" --replace_string="UPLOAD_LIMIT=$(MEDIA_UPLOAD_SIZE)" --target_file="$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
|
@ -69,7 +70,7 @@ source $install_dir/.env
|
|||
|
||||
ynh_script_progression --message="Configuring Bonfire release..." --weight=1
|
||||
cd $install_dir
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just config"
|
||||
ynh_exec_warn just config
|
||||
|
||||
ynh_exec_warn cat .env
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue