Simplify
This commit is contained in:
parent
bfc1dae28d
commit
0886f73816
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue