Clone repo before creating peertube user

This commit is contained in:
Bob Mottram 2017-12-04 10:35:03 +00:00
parent 43eab839b5
commit f8a9f4d522
1 changed files with 2 additions and 2 deletions

View File

@ -624,11 +624,11 @@ function mesh_install_peertube {
rm -rf $rootdir$PEERTUBE_DIR
fi
git clone $PEERTUBE_REPO $rootdir$PEERTUBE_DIR
chroot "$rootdir" groupadd peertube
chroot "$rootdir" useradd -c "PeerTube system account" -d $PEERTUBE_DIR -m -r -g peertube peertube
git clone $PEERTUBE_REPO $rootdir$PEERTUBE_DIR
cd $rootdir$PEERTUBE_DIR
git checkout $PEERTUBE_COMMIT -b $PEERTUBE_COMMIT