Small fixes

This commit is contained in:
tremor021 2025-10-03 15:03:23 +02:00
parent 2375d93880
commit dfcadfd84f

View File

@ -4,7 +4,6 @@
# Author: michelroegl-brunner # Author: michelroegl-brunner
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
@ -14,20 +13,18 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get update $STD apt-get update
$STD apt-get install -y \ $STD apt-get install -y \
build-essential \ build-essential \
sshpass \ sshpass \
expect expect
msg_ok "Dependencies installed." msg_ok "Dependencies installed."
NODE_VERSION=22 setup_nodejs NODE_VERSION=22 setup_nodejs
fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local" fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"
cd /opt/ProxmoxVE-Local
msg_info "Installing PVE Scripts local" msg_info "Installing PVE Scripts local"
cd /opt/ProxmoxVE-Local
$STD npm install $STD npm install
cp .env.example .env cp .env.example .env
mkdir -p data mkdir -p data
@ -36,7 +33,7 @@ $STD npm run build
msg_ok "Installed PVE Scripts local" msg_ok "Installed PVE Scripts local"
msg_info "Creating Service" msg_info "Creating Service"
cat > "etc/systemd/system/pvescriptslocal.service" <<EOF cat <<EOF >/etc/systemd/system/pvescriptslocal.service
[Unit] [Unit]
Description=PVEScriptslocal Service Description=PVEScriptslocal Service
After=network.target After=network.target
@ -54,7 +51,6 @@ WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now pvescriptslocal systemctl enable -q --now pvescriptslocal
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh
@ -65,4 +61,3 @@ $STD apt -y autoremove
$STD apt -y autoclean $STD apt -y autoclean
$STD apt -y clean $STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"