diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 298add0a..697cabea 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -52,12 +52,12 @@ function qvitter_update_background { if [ -d /var/www/${domain_name}/htdocs/local/plugins/Qvitter/img ]; then if [ -f bg_custom.${ext} ]; then cp bg_custom.${ext} /var/www/${domain_name}/htdocs/local/plugins/Qvitter/img - fi - if ! grep -q "bg_custom.${ext}" /var/www/${domain_name}/htdocs/config.php; then - if grep -q 'sitebackground' /var/www/${domain_name}/htdocs/config.php; then - sed -i '/sitebackground/d' /var/www/${domain_name}/htdocs/config.php + if ! grep -q "bg_custom.${ext}" /var/www/${domain_name}/htdocs/config.php; then + if grep -q 'sitebackground' /var/www/${domain_name}/htdocs/config.php; then + sed -i '/sitebackground/d' /var/www/${domain_name}/htdocs/config.php + fi + echo "\$config['site']['qvitter']['sitebackground'] = 'img/bg_custom.${ext}';" >> /var/www/${domain_name}/htdocs/config.php fi - echo "\$config['site']['qvitter']['sitebackground'] = 'img/bg_custom.${ext}';" >> /var/www/${domain_name}/htdocs/config.php fi fi }