Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
0886f73816
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      src/freedombone-utils-gnusocialtools

+ 2
- 3
src/freedombone-utils-gnusocialtools Parādīt failu

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