This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/scripts/vyos-postconfig-bootup.script

25 lines
649 B
Text
Raw Normal View History

2023-03-29 13:30:45 -05:00
#!/bin/sh
# This script is executed at boot time after VyOS configuration is fully
# applied. Any modifications required to work around unfixed bugs or use
# services not available through the VyOS CLI system can be placed here.
# Add dotfiles for home directory
2023-05-02 08:36:56 -05:00
tee /home/vyos/.gitconfig <<END >/dev/null
2023-03-29 13:30:45 -05:00
[init]
defaultBranch = main
[safe]
directory = /config
[user]
email = joe@veri.dev
name = Joseph Hanson
END
#
2023-05-02 08:36:56 -05:00
tee -a /home/vyos/.bash_aliases <<END >/dev/null
2023-03-29 13:30:45 -05:00
export SOPS_AGE_KEY_FILE=/config/secrets/age.key
export GIT_SSH_COMMAND="ssh -i /config/secrets/id_ed25519"
2023-05-03 10:46:00 -05:00
export VISUAL=vi
export EDITOR=vi
2023-03-29 13:30:45 -05:00
alias podman="sudo podman"
END
#