Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Discussion options

You must be logged in to vote

Ensure that /root/vpnlogin.sh first line is #!/usr/bin/env bash

Make /root/vpnlogin.sh executable

chmod +x /root/vpnlogin.sh

Create a service

cat <<EOF >/etc/systemd/system/vpnlogin.service
[Unit]
Description=vpnlogin
After=network.target

[Service]
Type=simple
ExecStart=/root/vpnlogin.sh

[Install]
WantedBy=multi-user.target
EOF

Enable service

systemctl enable -q vpnlogin.service

Reboot container

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nicoska84
Comment options

@tteck
Comment options

Answer selected by tteck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants