瀏覽代碼

Apply hold after checks

Bob Mottram 7 年之前
父節點
當前提交
c4720d9508
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/freedombone-utils-nodejs

+ 2
- 1
src/freedombone-utils-nodejs 查看文件

@@ -96,7 +96,6 @@ function mesh_install_nodejs {
96 96
     fi
97 97
 
98 98
     $mesh_install_nodejs_prefix apt-get -yq install nodejs
99
-    $mesh_install_nodejs_prefix apt-mark -q hold nodejs
100 99
 
101 100
     if [ -f "$rootdir/usr/bin/nodejs" ]; then
102 101
         cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
@@ -106,6 +105,8 @@ function mesh_install_nodejs {
106 105
         cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
107 106
     fi
108 107
 
108
+    $mesh_install_nodejs_prefix apt-mark -q hold nodejs
109
+
109 110
     if [ ! -f "${rootdir}/usr/bin/node" ]; then
110 111
         if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
111 112
             if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then