Add pleroma user after directory creation

This commit is contained in:
Bob Mottram 2017-11-06 13:19:19 +00:00
parent 7994cf979a
commit 5ae8b62849
1 changed files with 4 additions and 3 deletions

View File

@ -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