Small fixes
This commit is contained in:
parent
2375d93880
commit
dfcadfd84f
@ -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
|
||||||
@ -22,12 +21,10 @@ msg_info "Installing Dependencies"
|
|||||||
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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user