summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 4bdb910..9e6bf6d 100644
--- a/install.sh
+++ b/install.sh
@@ -12,7 +12,10 @@ done
set -e
-doas adduser -h /home/joeac.net joeac.net
+if [ -z "$(grep "\bjoeac.net\b" /etc/group)" ]
+then
+ doas adduser -h /home/joeac.net joeac.net
+fi
cd /home/joeac.net
sudo -u joeac.net git clone https://git.joeac.net/joeac.net.git joeac.net