Change permissions after changing gnusocial UI

This commit is contained in:
Bob Mottram 2017-07-09 13:17:19 +01:00
parent fa1e8e5814
commit 410c13d680
1 changed files with 6 additions and 0 deletions

View File

@ -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
}