1
0
Fork 0
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:
tituspijean 2022-05-04 19:47:08 +02:00
parent 1fe2a983f8
commit 8677e1bb7e
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 2 additions and 0 deletions

View file

@ -231,6 +231,7 @@ $wpcli_alias plugin activate companion-auto-update $plugin_network
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network $wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
# Set file and directories ownership # Set file and directories ownership
mkdir -p $final_path/wp-content/uploads
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"

View file

@ -279,6 +279,7 @@ $wpcli_alias plugin is-installed http-authentication && $wpcli_alias plugin deac
# Set file and directories ownership # Set file and directories ownership
mkdir -p $final_path/wp-content/uploads
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"