From 8677e1bb7e73c543660071a1d993607ff087c46e Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 4 May 2022 19:47:08 +0200 Subject: [PATCH] Make sure uploads directory exists --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) 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"