Files
ProxmoxVE/ct/warpgate.sh
T
push-app-to-main[bot] 6f79e0fb37 Add warpgate (ct) (#19218)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 16:31:04 +01:00

60 lines
1.8 KiB
Bash

#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/warp-tech/warpgate
APP="Warpgate"
var_tags="${var_tags:-bastion;ssh;security}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/warpgate/warpgate ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "warpgate" "warp-tech/warpgate"; then
msg_info "Stopping Warpgate"
systemctl stop warpgate
msg_ok "Stopped Warpgate"
fetch_and_deploy_gh_release "warpgate" "warp-tech/warpgate" "singlefile" "latest" "/opt/warpgate" "warpgate-v*-$(arch_resolve "x86_64" "arm64")-linux"
msg_info "Starting Warpgate"
systemctl start warpgate
msg_ok "Started Warpgate"
msg_ok "Updated successfully!"
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 "${GATEWAY}${BGN}https://${IP}:8888/@warpgate${CL}"
echo -e "${INFO}${YW}Admin login: admin, password in /opt/warpgate_data/.env (inside the container)${CL}"