Check that patchwork directory gets created

This commit is contained in:
Bob Mottram 2017-09-17 18:16:58 +01:00
parent f1199d0d42
commit 0f2fb846b3
1 changed files with 3 additions and 6 deletions

View File

@ -568,6 +568,9 @@ install_patchwork() {
get_npm_arch get_npm_arch
git clone $PATCHWORK_REPO $rootdir/etc/patchwork git clone $PATCHWORK_REPO $rootdir/etc/patchwork
if [ ! -d $rootdir/etc/patchwork ]; then
exit 7823520
fi
cd $rootdir/etc/patchwork cd $rootdir/etc/patchwork
git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT
@ -581,12 +584,6 @@ npm install --arch=$NPM_ARCH git-ssb
EOF EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
chroot "$rootdir" /usr/bin/install_patchwork chroot "$rootdir" /usr/bin/install_patchwork
if [ ! -f /usr/bin/patchwork ]; then
if [ ! -f /usr/local/bin/patchwork ]; then
echo $'Unable to install SSB Patchwork peer'
exit 783524
fi
fi
rm $rootdir/usr/bin/install_patchwork rm $rootdir/usr/bin/install_patchwork
echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork