Fix upgrad: adding patch

This commit is contained in:
yalh76 2019-02-11 20:26:27 +01:00
parent df703769fa
commit d8266e9041

View File

@ -130,7 +130,14 @@ ynh_print_info "Reconfigure php-fpm"
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
# SETUP # PATCH fs.readdirAsync error
#=================================================
ynh_replace_string "fs.readdirAsync" "fs.readdirSync" "$final_path/server/db/migrator-source.js"
ynh_replace_string "fs.readdirAsync" "fs.readdirSync" "$final_path/server/jobs/purge-uploads.js"
#=================================================
# MAKE SETUP
#================================================= #=================================================
chown -R "$app":"$app" "$final_path" chown -R "$app":"$app" "$final_path"