I came to the idea to create patchfiles, when I saw lots of config files people create.
Patchfiles implements various config scripts into one single bash file which you can run on freshly installed system.
NOTICE: Patchfiles is not replacement for Ansible, Chef, Puppet, Salt, Terraform etc. It's purpose is to be simple small one liner which configures single server or desktop machine.
- sysctl.conf
- open files limit
- sshd secure server
- tune initial window size
System automatically builds revert.sh script, whcih can bu run in order to revert back changes.
- Ubuntu 20.04
- Ubuntu 22.04
- Ubuntu 24.04
Start as a root:
bash <(curl -L -s https://github.com/dpanic/patchfiles/releases/latest/download/patch.sh) all
Start as a root:
bash <(curl -L -Ss https://github.com/dpanic/patchfiles/releases/latest/download/revert.sh) all
Invoke help with following command:
bash <(curl -L -Ss https://github.com/dpanic/patchfiles/releases/latest/download/revert.sh) help
implement stats✅implement after patch command✅refactor code to use Go Lang HTML templates✅implement detection if patched, used in patch script✅implement detection if not patched, used in revert script✅implement revert✅implement revert move .old to .current file if overwrite used in patching✅implement categories (networking, performance, security, general ...)✅implement patch by category✅implement revert by category✅implement patch by file name✅implement revert by file name✅implement help page✅