summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-03 11:36:59 +0100
committerJoe Carstairs <me@joeac.net>2026-07-03 11:41:00 +0100
commit2bc353c8fc4672e16c20bafe7235af2bda628844 (patch)
tree3a98a47f24759185bc312fd7c99ed8c8e84db017 /install.sh
parentcd4bafbed3241c6154239d05d8513885fb920025 (diff)
install.sh gives rw permissions to user over repo using groups
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 2f211b9..3b8462e 100644
--- a/install.sh
+++ b/install.sh
@@ -40,6 +40,8 @@ fi
if [ -z "$(grep "\bjoeac.net\b" /etc/group)" ]
then
sudo adduser -D -h /home/joeac.net joeac.net
+ sudo adduser joeac.net joeac.net
+ sudo adduser $(whoami) joeac.net
fi
cd /home/joeac.net
@@ -47,6 +49,8 @@ if ! [ -d joeac.net/.git ]
then
sudo -u joeac.net git clone https://git.joeac.net/joeac/joeac.net.git joeac.net
fi
+sudo chown joeac.net:joeac.net joeac.net
+sudo chmod 765 joeac.net
cd joeac.net
if ! [ -h /usr/local/lib/joeac.net ]