mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Make sure uploads directory exists
This commit is contained in:
parent
1fe2a983f8
commit
8677e1bb7e
2 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue