Files
runtipi/apps/rego-tunnel/shared/install-cisco-vpn-connect-service.sh
alexz 17253479a6
Some checks failed
Test / test (push) Has been cancelled
.
2026-01-17 14:56:31 +00:00

15 lines
479 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Installs and enables the cisco-vpn systemd unit on the machine where you run this.
# Intended to be executed inside the VM.
UNIT_SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
UNIT_NAME="cisco-vpn-connect.service"
sudo install -m 0644 "$UNIT_SRC_DIR/$UNIT_NAME" "/etc/systemd/system/$UNIT_NAME"
sudo systemctl daemon-reload
sudo systemctl enable --now "$UNIT_NAME"
sudo systemctl --no-pager --full status "$UNIT_NAME" || true