From dc2c19e73f2c674d25437baf8b94fce5309d8e4c Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sun, 9 Jul 2017 14:07:44 +0100
Subject: [PATCH] Ownership of background image

---
 src/freedombone-utils-gnusocialtools | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools
index 7f30fa779..c575f914e 100755
--- a/src/freedombone-utils-gnusocialtools
+++ b/src/freedombone-utils-gnusocialtools
@@ -132,6 +132,7 @@ function pleroma_set_background_image_from_url {
 
         if [ -d /var/www/${domain_name}/htdocs/static ]; then
             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
         fi
 
-- 
GitLab