mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-26 02:55:54 +00:00
Update UpSnap
This commit is contained in:
@@ -24,6 +24,7 @@ $STD apt-get install -y \
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_amd64.zip"
|
||||
setcap 'cap_net_raw=+ep' /opt/upsnap/upsnap
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/upsnap.service
|
||||
@@ -34,6 +35,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Restart=on-failure
|
||||
WorkingDirectory=/opt/upsnap
|
||||
ExecStart=/opt/upsnap/upsnap serve --http=0.0.0.0:8090
|
||||
|
||||
Reference in New Issue
Block a user