Files
server/etc/profile.d/nodenv.sh
2026-01-08 18:34:49 +01:00

12 lines
257 B
Bash
Executable File

#!/bin/sh
# Prepare .nodenv enviroment and inject shims into PATH for psacln members
if id -Gn | grep -q '\bpsacln\b'; then
if [ ! -e ~/.nodenv ] ; then
mkdir -p ~/.nodenv
ln -snfT "/opt/plesk/node" ~/.nodenv/versions
fi
eval "$(nodenv init -)"
fi