chore: ensure node symlink for next start
This commit is contained in:
parent
9bc9e7e7db
commit
ddb20059c2
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ if command -v apt-get >/dev/null 2>&1; then
|
||||||
apt-get update -y || true
|
apt-get update -y || true
|
||||||
apt-get install -y openssl || true
|
apt-get install -y openssl || true
|
||||||
fi
|
fi
|
||||||
|
if ! command -v node >/dev/null 2>&1 && [ -x /usr/bin/nodejs ]; then
|
||||||
|
ln -sf /usr/bin/nodejs /usr/bin/node || true
|
||||||
|
fi
|
||||||
if ! command -v node >/dev/null 2>&1; then
|
if ! command -v node >/dev/null 2>&1; then
|
||||||
echo "[start-web] node not found; installing via apt-get (requires root)"
|
echo "[start-web] node not found; installing via apt-get (requires root)"
|
||||||
apt-get update -y || true
|
apt-get update -y || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue