small pixel drawing of a pufferfish zoa

*
Jes Olson j3s@c3f.net
Tue, 27 Sep 2022 21:47:34 -0500
commit

65c201312d7de7b91c7050e12f34015bc6ad788e

parent

663a25bf755d4e4e773f0e6060431c90e48df524

1 files changed, 12 insertions(+), 1 deletions(-)

jump to
M READMEREADME

@@ -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