Ownership of background image

This commit is contained in:
Bob Mottram 2017-07-09 14:07:44 +01:00
parent 0886f73816
commit dc2c19e73f
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ function pleroma_set_background_image_from_url {
if [ -d /var/www/${domain_name}/htdocs/static ]; then
cp bg_custom.${ext} static/bg_custom.${ext}
chown www-data:www-data static/bg_custom.${ext}
sed -i "s|\"background\":.*|\"background\": \"/static/bg_custom.${ext}\",|g" static/config.json
fi