This commit is contained in:
Bob Mottram 2017-07-09 13:54:33 +01:00
parent bfc1dae28d
commit 0886f73816
1 changed files with 2 additions and 3 deletions

View File

@ -131,9 +131,8 @@ function pleroma_set_background_image_from_url {
fi
if [ -d /var/www/${domain_name}/htdocs/static ]; then
cd /var/www/${domain_name}/htdocs/static
cp ../bg_custom.${ext} bg_custom.${ext}
sed -i "s|\"background\":.*|\"background\": \"/static/bg_custom.${ext}\",|g" config.json
cp bg_custom.${ext} static/bg_custom.${ext}
sed -i "s|\"background\":.*|\"background\": \"/static/bg_custom.${ext}\",|g" static/config.json
fi
qvitter_update_background ${domain_name} ${ext}