#!/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