Update meshcentral-install.sh

This commit is contained in:
tschettervictor
2024-09-13 11:58:22 -06:00
committed by GitHub
parent f0e8f7c626
commit bcc4e46a62

View File

@@ -1,12 +1,17 @@
#!/bin/sh
# Install MeshCentral
NODE_VERSION="20"
# Check for root privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
# Install packages
pkg install -y npm-node"${NODE_VERSION}" node"${NODE_VERSION}"
# Create directories
mkdir -p /usr/local/meshcentral/meshcentral-data
mkdir -p /usr/local/meshcentral/meshcentral-files