Skip to content

Commit 4074fb6

Browse files
vhsdreamMickLesk
andauthored
NetVisor: add build deps, increase RAM (#9205)
* NetVisor: add pkg-config as build dependency - this will be needed for v0.9.2 * Add libssl-dev as build dependency * Increase RAM to 3GB * Change apt-get to apt for package installation --------- Co-authored-by: CanbiZ <[email protected]>
1 parent ee2f5ef commit 4074fb6

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ct/netvisor.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
88
APP="NetVisor"
99
var_tags="${var_tags:-analytics}"
1010
var_cpu="${var_cpu:-2}"
11-
var_ram="${var_ram:-2048}"
11+
var_ram="${var_ram:-3072}"
1212
var_disk="${var_disk:-6}"
1313
var_os="${var_os:-debian}"
1414
var_version="${var_version:-13}"
@@ -40,6 +40,12 @@ function update_script() {
4040

4141
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "netvisor" "mayanayza/netvisor" "tarball" "latest" "/opt/netvisor"
4242

43+
if ! dpkg -l | grep -q "pkg-config"; then
44+
$STD apt install -y pkg-config
45+
fi
46+
if ! dpkg -l | grep -q "libssl-dev"; then
47+
$STD apt install -y libssl-dev
48+
fi
4349
TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
4450
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
4551

frontend/public/json/netvisor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"script": "ct/netvisor.sh",
2121
"resources": {
2222
"cpu": 2,
23-
"ram": 2048,
23+
"ram": 3072,
2424
"hdd": 6,
2525
"os": "Debian",
2626
"version": "13"

install/netvisor-install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ update_os
1515

1616
msg_info "Installing Dependencies"
1717
$STD apt install -y \
18-
build-essential
18+
build-essential \
19+
libssl-dev \
20+
pkg-config
1921
msg_ok "Installed Dependencies"
2022

2123
PG_VERSION=17 setup_postgresql
@@ -119,7 +121,7 @@ StandardError=journal
119121
[Install]
120122
WantedBy=multi-user.target
121123
EOF
122-
systemctl enable -q --now netvisor-daemon
124+
systemctl enable -q --now netvisor-daemon
123125
msg_ok "Netvisor server & daemon configured and running"
124126

125127
motd_ssh

0 commit comments

Comments
 (0)