*
Jes Olson j3s@c3f.net
Tue, 27 Sep 2022 21:47:34 -0500
1 files changed,
12 insertions(+),
1 deletions(-)
jump to
M
README
→
README
@@ -305,6 +305,17 @@
BONUS SECTION! :3 :3 <3 :3 common config management patterns in zoa +### define a reusable function +in zoa, this is easy - just define a shell +function: +die() { + printf "%s.\n" "$1" + exit 1 +} + +every sub-script that is called will automatically +have access to it. env vars work the same way. + ### install a package (this is distro dependent)@@ -317,7 +328,7 @@ if [ "$OS_RELEASE_ID" = "debian" ]; then
apt install -y cowsay fi -### place sshd_config, and reload ssh when it changes +### place sshd_config, set permissions, and reload ssh when it changes zoa-file sshd /etc/ssh/sshd_config systemctl restart sshd chown root:root /etc/ssh/sshd_config