From 410c13d680a556fc2d3607c5156e604b2727cb52 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 9 Jul 2017 13:17:19 +0100 Subject: [PATCH] Change permissions after changing gnusocial UI --- src/freedombone-utils-gnusocialtools | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 5b6cfa33..e5580564 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -823,6 +823,8 @@ function gnusocial_use_classic { sed -i "s|// addPlugin('Qvitter')|addPlugin('Qvitter')|g" /var/www/$domain_name/htdocs/config.php sed -i "s|addPlugin('Qvitter')|//addPlugin('Qvitter')|g" /var/www/$domain_name/htdocs/config.php fi + chown -R www-data:www-data /var/www/${domain_name}/htdocs + systemctl restart nginx } @@ -846,8 +848,10 @@ function gnusocial_use_qvitter { if grep -q "// addPlugin('Qvitter')" /var/www/$domain_name/htdocs/config.php; then sed -i "s|// addPlugin('Qvitter')|addPlugin('Qvitter')|g" /var/www/$domain_name/htdocs/config.php fi + chown -R www-data:www-data /var/www/${domain_name}/htdocs systemctl restart nginx + systemctl restart php7.0-fpm } function gnusocial_use_pleroma { @@ -876,6 +880,7 @@ function gnusocial_use_pleroma { fi cp $INSTALL_DIR/pleroma/dist/index.html /var/www/${domain_name}/htdocs/index.html + chown -R www-data:www-data /var/www/${domain_name}/htdocs systemctl restart nginx } @@ -911,6 +916,7 @@ function gnusocial_use_armadillo { cp -r $INSTALL_DIR/armadillo/armadillo/* /var/www/${domain_name}/htdocs/armadillo cp $INSTALL_DIR/armadillo/armadillo.html /var/www/${domain_name}/htdocs/index.html cp $INSTALL_DIR/armadillo/dash.html /var/www/${domain_name}/htdocs/dash.html + chown -R www-data:www-data /var/www/${domain_name}/htdocs systemctl restart nginx }