Skip to content

Commit b26ad61

Browse files
UpSnap (#7825)
* 'Add new script' * Remove redundant success message in upsnap.sh * Update upsnap.json * Fix JSON formatting in upsnap.json --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <[email protected]>
1 parent 5beaec9 commit b26ad61

File tree

4 files changed

+155
-0
lines changed

4 files changed

+155
-0
lines changed

ct/headers/upsnap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__ __ _____
2+
/ / / /___ / ___/____ ____ _____
3+
/ / / / __ \\__ \/ __ \/ __ `/ __ \
4+
/ /_/ / /_/ /__/ / / / / /_/ / /_/ /
5+
\____/ .___/____/_/ /_/\__,_/ .___/
6+
/_/ /_/

ct/upsnap.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/seriousm4x/UpSnap
7+
8+
APP="UpSnap"
9+
var_tags="${var_tags:-network}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-2}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/upsnap ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
31+
if check_for_gh_release "upsnap" "seriousm4x/UpSnap"; then
32+
msg_info "Stopping Services"
33+
systemctl stop upsnap
34+
msg_ok "Stopped Services"
35+
36+
fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_amd64.zip"
37+
38+
msg_info "Starting Services"
39+
systemctl start upsnap
40+
msg_ok "Started Services"
41+
msg_ok "Updated Successfully"
42+
fi
43+
exit
44+
}
45+
46+
start
47+
build_container
48+
description
49+
50+
msg_ok "Completed Successfully!\n"
51+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
52+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
53+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}"

frontend/public/json/upsnap.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "UpSnap",
3+
"slug": "upsnap",
4+
"categories": [
5+
4
6+
],
7+
"date_created": "2025-09-12",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 8090,
12+
"documentation": "https://github.com/seriousm4x/UpSnap/wiki",
13+
"config_path": "",
14+
"website": "https://github.com/seriousm4x/UpSnap",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/upsnap.webp",
16+
"description": "UpSnap is a self-hosted web app that lets you wake up, manage and monitor devices on your network with ease. Built with SvelteKit, Go and PocketBase, it offers a clean dashboard, scheduled wake-ups, device discovery and secure user management.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/upsnap.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 512,
24+
"hdd": 2,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "The first user you register will be the admin user.",
37+
"type": "info"
38+
}
39+
]
40+
}

install/upsnap-install.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/seriousm4x/UpSnap
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt install -y \
18+
nmap \
19+
samba \
20+
samba-common-bin \
21+
openssh-client \
22+
openssh-server \
23+
sshpass
24+
msg_ok "Installed Dependencies"
25+
26+
fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_amd64.zip"
27+
setcap 'cap_net_raw=+ep' /opt/upsnap/upsnap
28+
29+
msg_info "Creating Service"
30+
cat <<EOF >/etc/systemd/system/upsnap.service
31+
[Unit]
32+
Description=UpSnap Service
33+
Documentation=https://github.com/seriousm4x/UpSnap/wiki
34+
After=network.target
35+
36+
[Service]
37+
Type=simple
38+
User=root
39+
Restart=on-failure
40+
WorkingDirectory=/opt/upsnap
41+
ExecStart=/opt/upsnap/upsnap serve --http=0.0.0.0:8090
42+
43+
[Install]
44+
WantedBy=multi-user.target
45+
EOF
46+
systemctl enable -q --now upsnap
47+
msg_ok "Service Created"
48+
49+
motd_ssh
50+
customize
51+
52+
msg_info "Cleaning up"
53+
$STD apt -y autoremove
54+
$STD apt -y autoclean
55+
$STD apt -y clean
56+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)