From e69d096f4c6eb2ffd0766ff7f1f2fdd703bed209 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Sep 2015 22:06:43 +0100 Subject: [PATCH] Set permissions --- src/freedombone | 2 ++ src/freedombone-meshweb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/freedombone b/src/freedombone index 195fa63a..ae84059b 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1707,6 +1707,7 @@ function install_zeronet_blog { if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then mkdir -p /home/$MY_USERNAME/.config/zeronet + chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config fi echo "$ZERONET_URL/$ZERONET_BLOG_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myblog @@ -1803,6 +1804,7 @@ function install_zeronet_forum { if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then mkdir -p /home/$MY_USERNAME/.config/zeronet + chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config fi echo "$ZERONET_URL/$ZERONET_FORUM_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myforum diff --git a/src/freedombone-meshweb b/src/freedombone-meshweb index 57a1002a..809dd0bb 100755 --- a/src/freedombone-meshweb +++ b/src/freedombone-meshweb @@ -101,6 +101,7 @@ function install_zeronet_blog { if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then mkdir -p /home/$MY_USERNAME/.config/zeronet + chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config fi echo "$ZERONET_URL/$ZERONET_BLOG_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myblog @@ -189,6 +190,7 @@ function install_zeronet_forum { if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then mkdir -p /home/$MY_USERNAME/.config/zeronet + chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config fi echo "$ZERONET_URL/$ZERONET_FORUM_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myforum