14
apps/rego-tunnel/shared/install-cisco-vpn-connect-service.sh
Normal file
14
apps/rego-tunnel/shared/install-cisco-vpn-connect-service.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user