Add pleroma user after directory creation
This commit is contained in:
parent
7994cf979a
commit
5ae8b62849
|
@ -509,9 +509,6 @@ function install_pleroma {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# create user
|
|
||||||
useradd -d $PLEROMA_DIR -s /bin/false pleroma
|
|
||||||
|
|
||||||
# get the repo
|
# get the repo
|
||||||
if [ -d /repos/pleroma ]; then
|
if [ -d /repos/pleroma ]; then
|
||||||
mkdir -p $PLEROMA_DIR
|
mkdir -p $PLEROMA_DIR
|
||||||
|
@ -529,6 +526,10 @@ function install_pleroma {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# create user
|
||||||
|
useradd -d $PLEROMA_DIR -s /bin/false pleroma
|
||||||
|
|
||||||
|
|
||||||
# checkout the commit
|
# checkout the commit
|
||||||
cd $PLEROMA_DIR
|
cd $PLEROMA_DIR
|
||||||
git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT
|
git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT
|
||||||
|
|
Loading…
Reference in New Issue