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

Permissions on webadmin directories

parent 1aed6d56
No related branches found
No related tags found
No related merge requests found
......@@ -634,6 +634,8 @@ function image_install_web_admin {
# enable the webadmin site
chroot "$rootdir" ln -s "/etc/nginx/sites-available/${local_hostname}" /etc/nginx/sites-enabled/
chroot "$rootdir" chown -R www-data:www-data "/var/www/${local_hostname}/htdocs"
chroot "$rootdir" chmod g+w "/var/www/${local_hostname}/htdocs"
chroot "$rootdir" chmod a+w "$webadmin_install_dir"
{ echo '[Unit]';
echo 'Description=Installer daemon for web admin';
......@@ -824,6 +826,8 @@ function install_web_admin {
web_admin_setup_login
chown -R www-data:www-data "/var/www/${local_hostname}/htdocs"
chmod g+w "/var/www/${local_hostname}/htdocs"
chmod a+w "$webadmin_install_dir"
web_admin_avahi
......
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