Apply hold after checks

This commit is contained in:
Bob Mottram 2018-03-30 12:02:34 +01:00
parent 9fdac92c9b
commit c4720d9508
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,6 @@ function mesh_install_nodejs {
fi
$mesh_install_nodejs_prefix apt-get -yq install nodejs
$mesh_install_nodejs_prefix apt-mark -q hold nodejs
if [ -f "$rootdir/usr/bin/nodejs" ]; then
cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
@ -106,6 +105,8 @@ function mesh_install_nodejs {
cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
fi
$mesh_install_nodejs_prefix apt-mark -q hold nodejs
if [ ! -f "${rootdir}/usr/bin/node" ]; then
if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then