- TREK: Self-hosted travel planner (Node.js 22, Express, SQLite) - SoulSync: Music discovery & automation (Python 3.11, Flask) - UpSnap: Wake-on-LAN web app (Go binary, PocketBase) - Anchor: Offline-first note taking (NestJS, Next.js, PostgreSQL) - Slink: Image sharing platform (PHP/Symfony, SvelteKit, Redis, Caddy)
57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: MickLesk (CanbiZ)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
# Source: https://github.com/seriousm4x/UpSnap
|
|
|
|
APP="UpSnap"
|
|
var_tags="${var_tags:-network;wol;monitoring}"
|
|
var_cpu="${var_cpu:-1}"
|
|
var_ram="${var_ram:-512}"
|
|
var_disk="${var_disk:-2}"
|
|
var_os="${var_os:-debian}"
|
|
var_version="${var_version:-13}"
|
|
var_unprivileged="${var_unprivileged:-1}"
|
|
|
|
header_info "$APP"
|
|
variables
|
|
color
|
|
catch_errors
|
|
|
|
function update_script() {
|
|
header_info
|
|
check_container_storage
|
|
check_container_resources
|
|
|
|
if [[ ! -f ~/.upsnap ]]; then
|
|
msg_error "No ${APP} Installation Found!"
|
|
exit
|
|
fi
|
|
|
|
if check_for_gh_release "upsnap" "seriousm4x/UpSnap"; then
|
|
msg_info "Stopping Service"
|
|
systemctl stop upsnap
|
|
msg_ok "Stopped Service"
|
|
|
|
fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_amd64.zip"
|
|
chmod +x /opt/upsnap/upsnap
|
|
setcap 'cap_net_raw=+ep' /opt/upsnap/upsnap
|
|
|
|
msg_info "Starting Service"
|
|
systemctl start upsnap
|
|
msg_ok "Started Service"
|
|
msg_ok "Updated ${APP}"
|
|
fi
|
|
exit
|
|
}
|
|
|
|
start
|
|
build_container
|
|
description
|
|
|
|
msg_ok "Completed Successfully!\n"
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}"
|