diff --git a/scripts/install b/scripts/install index cd6468b..64fd183 100644 --- a/scripts/install +++ b/scripts/install @@ -231,6 +231,7 @@ $wpcli_alias plugin activate companion-auto-update $plugin_network $wpcli_alias plugin activate wp-fail2ban-redux $plugin_network # Set file and directories ownership +mkdir -p $final_path/wp-content/uploads chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 30c873d..65d31c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -279,6 +279,7 @@ $wpcli_alias plugin is-installed http-authentication && $wpcli_alias plugin deac # Set file and directories ownership +mkdir -p $final_path/wp-content/uploads chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"