Exit if peertube install fails

This commit is contained in:
Bob Mottram 2017-12-04 11:10:55 +00:00
parent f8a9f4d522
commit 4a04d29121
1 changed files with 4 additions and 0 deletions

View File

@ -661,6 +661,10 @@ fi
EOF
chmod +x $rootdir/usr/bin/install_peertube
chroot "$rootdir" /usr/bin/install_peertube
if [ ! "$?" = "0" ]; then
echo $'PeerTube install failed'
exit 735638
fi
echo '[Unit]' > $rootdir/etc/systemd/system/peertube.service
echo 'Description=PeerTube Decentralized video streaming platform' >> $rootdir/etc/systemd/system/peertube.service