From 5ae8b62849d1a1e62f7ddccfbac47bc6eb38c60f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 6 Nov 2017 13:19:19 +0000 Subject: [PATCH] Add pleroma user after directory creation --- src/freedombone-app-pleroma | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 908de921..4379295b 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -509,9 +509,6 @@ function install_pleroma { fi - # create user - useradd -d $PLEROMA_DIR -s /bin/false pleroma - # get the repo if [ -d /repos/pleroma ]; then mkdir -p $PLEROMA_DIR @@ -529,6 +526,10 @@ function install_pleroma { fi + # create user + useradd -d $PLEROMA_DIR -s /bin/false pleroma + + # checkout the commit cd $PLEROMA_DIR git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT