This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Demonstrate Bash | |
[Service] | |
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" | |
ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Helper function to automate openvpn3 connections that need SSO capabilities. | |
# Add it to your ~/.bashrc file using following code (and make sure to edit $OPENVPN3_CONFIG_NAME): | |
# source /path/to/openvpn3_sso.sh | |
# If using zsh, you can also save this to the `$ZSH/custom/openvpn3_sso.zsh` file. | |
# You can automatically have this run by calling ovpn3_sso_connect in your ~/.bashrc or ~/.zshrc file. | |
# WARNING: This has currently only been tested on zsh and bash. | |
# (c) Koen Van den Wijngaert <[email protected]> |