From b6cf537ebcf7b8c3c74c1e3138d85f04c3394cb2 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 8 Jan 2020 14:34:17 +1300 Subject: [PATCH] Chmod +x scripts. --- installer-config.txt | 2 +- post-install.txt | 0 readme.org | 22 +++++++++++++++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) mode change 100644 => 100755 installer-config.txt mode change 100644 => 100755 post-install.txt diff --git a/installer-config.txt b/installer-config.txt old mode 100644 new mode 100755 index 5ef8708..b16f0c9 --- a/installer-config.txt +++ b/installer-config.txt @@ -3,7 +3,7 @@ #================================================================ preset=server firmware_packages=1 -packages=nano,curl,htop,git,smartmontools,fail2ban,knockd,iptables,glusterfs-server +packages=nano,curl,htop,git,smartmontools,fail2ban,knockd,iptables,glusterfs-server,sed #================================================================ diff --git a/post-install.txt b/post-install.txt old mode 100644 new mode 100755 diff --git a/readme.org b/readme.org index af1e526..dcda3db 100644 --- a/readme.org +++ b/readme.org @@ -93,7 +93,7 @@ raspberry pis. #+end_example -** Apply custom configuration +** Apply custom install configuration Our next step after downloading the latest release is to apply our own installation configuration using a simple txt file. @@ -126,6 +126,26 @@ raspberry pis. #+end_example +** Apply custom post install script + + The final step is to supply a post install script which completes additional + security hardening and production readiness automatically. + + To supply a script we can provide an additional ~post-install.txt~ file as + documented [[https://github.com/FooDeas/raspberrypi-ua-netinst/blob/devel/doc/INSTALL_ADVANCED.md][here]]. + + I have a hardening script prepared in this repository that we can copy in. + + #+NAME: Copy in post-install script + #+begin_src shell :results output code verbatim replace :wrap example + echo Copying in post-install.txt + cp post-install.txt /installer/raspberrypi-ua-netinst/config/ + + echo Display wordcount of file after copy to validate + wc installer/raspberrypi-ua-netinst/config/post-install.txt + #+end_src + + * Step 2 - Copy the install media to sd card Our next step is to copy the contents of the ~installer/~ folder