From 0886f738163328b02971ef9d1eb31a5736571823 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 9 Jul 2017 13:54:33 +0100 Subject: [PATCH] Simplify --- src/freedombone-utils-gnusocialtools | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 97d223ff..7f30fa77 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -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}