浏览代码

Exit if peertube install fails

Bob Mottram 7 年前
父节点
当前提交
4a04d29121
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-app-peertube

+ 4
- 0
src/freedombone-app-peertube 查看文件

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