From 1fd58633086021967951d6191beb7368705c8d01 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 16:22:25 +0100 Subject: [PATCH] Permissions --- install-freedombone.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 06c635ed..ea256d97 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1901,6 +1901,10 @@ function install_wiki { mv * /var/www/$WIKI_DOMAIN_NAME/htdocs/ chmod -R 755 /var/www/$WIKI_DOMAIN_NAME/htdocs chown -R www-data:www-data /var/www/$WIKI_DOMAIN_NAME/htdocs + chown -R root:root /var/www/$WIKI_DOMAIN_NAME/htdocs/data + chown -R root:root /var/www/$WIKI_DOMAIN_NAME/htdocs/conf + chown -R root:root /var/www/$WIKI_DOMAIN_NAME/htdocs/bin + chown -R root:root /var/www/$WIKI_DOMAIN_NAME/htdocs/inc if ! grep -q "video/ogg" /var/www/$WIKI_DOMAIN_NAME/htdocs/conf/mime.conf; then echo 'ogv video/ogg' >> /var/www/$WIKI_DOMAIN_NAME/htdocs/conf/mime.conf @@ -2010,6 +2014,12 @@ function install_wiki { echo ' location ~ /store {' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo ' deny all;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' location ~ /(data|conf|bin|inc)/ {' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' deny all;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' }' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' location ~ /\.ht {' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' deny all;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME + echo ' }' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME echo '}' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME configure_php