Exit if peertube install fails
This commit is contained in:
parent
f8a9f4d522
commit
4a04d29121
|
@ -661,6 +661,10 @@ fi
|
||||||
EOF
|
EOF
|
||||||
chmod +x $rootdir/usr/bin/install_peertube
|
chmod +x $rootdir/usr/bin/install_peertube
|
||||||
chroot "$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 '[Unit]' > $rootdir/etc/systemd/system/peertube.service
|
||||||
echo 'Description=PeerTube Decentralized video streaming platform' >> $rootdir/etc/systemd/system/peertube.service
|
echo 'Description=PeerTube Decentralized video streaming platform' >> $rootdir/etc/systemd/system/peertube.service
|
||||||
|
|
Loading…
Reference in New Issue