mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Fix filesize as setting
This commit is contained in:
parent
0e6d32e4f7
commit
3130eaa185
1 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,13 @@ app=bozon
|
||||||
path=$(sudo yunohost app setting $app path)
|
path=$(sudo yunohost app setting $app path)
|
||||||
stable=$(sudo yunohost app setting $app version)
|
stable=$(sudo yunohost app setting $app version)
|
||||||
is_public=$(sudo yunohost app setting $app is_public)
|
is_public=$(sudo yunohost app setting $app is_public)
|
||||||
|
filesize=$(sudo yunohost app setting $app filesize)
|
||||||
|
if [ "${#filesize}" -eq 0 ]
|
||||||
|
then # in old script filesize was not saved as an setting
|
||||||
|
domain=$(sudo yunohost app setting $app domain)
|
||||||
|
filesize=$(cat /etc/nginx/conf.d/$domain.d/$app.conf | grep -Po 'client_max_body_size \K.*(?=;)')
|
||||||
|
sudo yunohost app setting $app filesize -v "$filesize"
|
||||||
|
fi
|
||||||
|
|
||||||
# definie useful vars
|
# definie useful vars
|
||||||
parent_path=/var/www
|
parent_path=/var/www
|
||||||
|
|
Loading…
Add table
Reference in a new issue