Ownership of background image
This commit is contained in:
parent
0886f73816
commit
dc2c19e73f
|
@ -132,6 +132,7 @@ function pleroma_set_background_image_from_url {
|
||||||
|
|
||||||
if [ -d /var/www/${domain_name}/htdocs/static ]; then
|
if [ -d /var/www/${domain_name}/htdocs/static ]; then
|
||||||
cp bg_custom.${ext} static/bg_custom.${ext}
|
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
|
sed -i "s|\"background\":.*|\"background\": \"/static/bg_custom.${ext}\",|g" static/config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue