Skip to content
Snippets Groups Projects
Commit 410c13d6 authored by Bob Mottram's avatar Bob Mottram
Browse files

Change permissions after changing gnusocial UI

parent fa1e8e58
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment