diff --git a/scripts/upgrade b/scripts/upgrade index 3cbce3b..c749ec2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,11 +51,13 @@ fi # If public_path doesn't exist, create it if [ -z "$public_path" ]; then public_path=/home/yunohost.app/$app + mkdir -p $public_path ynh_app_setting_set --app=$app --key=public_path --value=$public_path fi if [ ! -d "$public_path/uploads" ]; then mkdir -p $public_path/uploads + mkdir -p $public_path/uploads/{big,import,medium,raw,small,thumb} fi # Cleaning legacy permissions