Skip to content
Snippets Groups Projects
Commit 0886f738 authored by Bob Mottram's avatar Bob Mottram
Browse files

Simplify

parent bfc1dae2
No related branches found
No related tags found
No related merge requests found
...@@ -131,9 +131,8 @@ function pleroma_set_background_image_from_url { ...@@ -131,9 +131,8 @@ function pleroma_set_background_image_from_url {
fi fi
if [ -d /var/www/${domain_name}/htdocs/static ]; then if [ -d /var/www/${domain_name}/htdocs/static ]; then
cd /var/www/${domain_name}/htdocs/static cp bg_custom.${ext} static/bg_custom.${ext}
cp ../bg_custom.${ext} 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" config.json
fi fi
qvitter_update_background ${domain_name} ${ext} qvitter_update_background ${domain_name} ${ext}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment