Browse Source

Exit if peertube install fails

Bob Mottram 7 years ago
parent
commit
4a04d29121
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-peertube

+ 4
- 0
src/freedombone-app-peertube View File

661
 EOF
661
 EOF
662
     chmod +x $rootdir/usr/bin/install_peertube
662
     chmod +x $rootdir/usr/bin/install_peertube
663
     chroot "$rootdir" /usr/bin/install_peertube
663
     chroot "$rootdir" /usr/bin/install_peertube
664
+    if [ ! "$?" = "0" ]; then
665
+        echo $'PeerTube install failed'
666
+        exit 735638
667
+    fi
664
 
668
 
665
     echo '[Unit]' > $rootdir/etc/systemd/system/peertube.service
669
     echo '[Unit]' > $rootdir/etc/systemd/system/peertube.service
666
     echo 'Description=PeerTube Decentralized video streaming platform' >> $rootdir/etc/systemd/system/peertube.service
670
     echo 'Description=PeerTube Decentralized video streaming platform' >> $rootdir/etc/systemd/system/peertube.service