Skip to content

Latest commit

 

History

117 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PATCHFILES

Go Report Card

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.

IMPLEMENTED:

  • 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.

BUILT AND TESTED ON

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04

PATCH (INSTALL)

Start as a root:

bash <(curl -L -s https://github.com/dpanic/patchfiles/releases/latest/download/patch.sh) all

REVERT (UNINSTALL)

Start as a root:

bash <(curl -L -Ss https://github.com/dpanic/patchfiles/releases/latest/download/revert.sh) all

HELP

Invoke help with following command:

bash <(curl -L -Ss https://github.com/dpanic/patchfiles/releases/latest/download/revert.sh) help

TODO

  • 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 ✅

About

Sysctl.conf and other system tunings for Linux

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages