mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-13 18:40:02 +01:00
Update meshcentral-install.sh
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Install MeshCentral
|
# Install MeshCentral
|
||||||
|
|
||||||
|
NODE_VERSION="20"
|
||||||
|
|
||||||
# Check for root privileges
|
# Check for root privileges
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if ! [ $(id -u) = 0 ]; then
|
||||||
echo "This script must be run with root privileges"
|
echo "This script must be run with root privileges"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
pkg install -y npm-node"${NODE_VERSION}" node"${NODE_VERSION}"
|
||||||
|
|
||||||
# Create directories
|
# Create directories
|
||||||
mkdir -p /usr/local/meshcentral/meshcentral-data
|
mkdir -p /usr/local/meshcentral/meshcentral-data
|
||||||
mkdir -p /usr/local/meshcentral/meshcentral-files
|
mkdir -p /usr/local/meshcentral/meshcentral-files
|
||||||
|
|||||||
Reference in New Issue
Block a user