mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Fix domain
This commit is contained in:
parent
6f18f3252b
commit
75f6f90384
1 changed files with 1 additions and 1 deletions
|
@ -12,9 +12,9 @@ path=$(sudo yunohost app setting $app path)
|
|||
stable=$(sudo yunohost app setting $app version)
|
||||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
filesize=$(sudo yunohost app setting $app filesize)
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue