Bob Mottram 7 年之前
父節點
當前提交
9f42792e6a
共有 1 個文件被更改,包括 6 次插入12 次删除
  1. 6
    12
      src/freedombone-app-peertube

+ 6
- 12
src/freedombone-app-peertube 查看文件

890
 apt-get -y update
890
 apt-get -y update
891
 apt-get -yq install yarn
891
 apt-get -yq install yarn
892
 
892
 
893
-#npm install --arch=$NPM_ARCH -g yarn@1.5.1
894
-#if [ ! "\$?" = "0" ]; then
893
+#if ! npm install --arch=$NPM_ARCH -g yarn@1.5.1; then
895
 #    echo $'PeerTube Failed to install yarn'
894
 #    echo $'PeerTube Failed to install yarn'
896
 #    exit 79353234
895
 #    exit 79353234
897
 #fi
896
 #fi
898
-#npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional
899
-#if [ ! "\$?" = "0" ]; then
897
+#if ! npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional; then
900
 #    echo $'PeerTube failed to install webpack'
898
 #    echo $'PeerTube failed to install webpack'
901
 #    exit 68386353
899
 #    exit 68386353
902
 #fi
900
 #fi
903
 yarn install
901
 yarn install
904
 yarn run build:prod
902
 yarn run build:prod
905
-yarn add -D webpack
906
-if [ ! "\$?" = "0" ]; then
903
+if ! yarn add -D webpack; then
907
     echo $'PeerTube failed to add webpack'
904
     echo $'PeerTube failed to add webpack'
908
     exit 67342823
905
     exit 67342823
909
 fi
906
 fi
910
-yarn install --ignore-optional
911
-if [ ! "\$?" = "0" ]; then
907
+if ! yarn install --ignore-optional; then
912
     echo $'PeerTube failed to run yarn install'
908
     echo $'PeerTube failed to run yarn install'
913
     exit 63754235
909
     exit 63754235
914
 fi
910
 fi
918
     exit 3476835
914
     exit 3476835
919
 fi
915
 fi
920
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
916
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
921
-npm install --arch=$NPM_ARCH
922
-if [ ! "\$?" = "0" ]; then
917
+if ! npm install --arch=$NPM_ARCH; then
923
     echo $'PeerTube failed to install peertube'
918
     echo $'PeerTube failed to install peertube'
924
     exit 7835243
919
     exit 7835243
925
 fi
920
 fi
928
     exit 5737583
923
     exit 5737583
929
 fi
924
 fi
930
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
925
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
931
-npm run build --arch=$NPM_ARCH
932
-if [ ! "\$?" = "0" ]; then
926
+if ! npm run build --arch=$NPM_ARCH; then
933
     echo $'PeerTube failed to build peertube'
927
     echo $'PeerTube failed to build peertube'
934
     exit 5293593
928
     exit 5293593
935
 fi
929
 fi