Bash Script to automate post-installation steps. Helps to install packages on different operating systems:
postinstall.sh
is simple bash shell script which in turn generates scripts.
The generation depends on the operating system and type of installation.
The templates that are included in the generation can be stored in the file system or on a web server.
This can also be your GitHub repository.
Just fork this repository and edit it according to your needs.
postinstall.sh
is not a configuration management system.
If you want to install many servers automatically, you should look at ansible.
But if you want to quickly reinstall your laptop or Raspberry Pi, postinstall.sh
can help you.
Please check the Wiki for more information.
Download:
curl -O "https://raw.githubusercontent.com/Cyclenerd/postinstall/master/postinstall.sh"
Alternative download with short URL:
curl -fL http://bit.ly/get_postinstall -o postinstall.sh
Create a package lists and scripts as explained in this repository or in the Wiki.
Example:
mkdir install
cd install
vi packages.list
Run as root:
bash postinstall.sh -b install
Usage: postinstall.sh [-t <TYPE>] [-b <BASE>] [-h]:
[-t <TYPE>] sets the type of installation (default: server)
[-b <BASE>] sets the base url or dir (default: https://raw.githubusercontent.com/Cyclenerd/postinstall/master/base)
[-h] displays help (this message)
Example: postinstall.sh
or postinstall.sh -t workstation
Only bash
, curl
, tput
(ncurses-utils
) and a package manager for the respective operating system:
apk
port
or brew
pacman
apt-cyg
apt-get
pkg
pkgman
urpmi
pkg_add
pkg_add
opkg
pkg
(https://gitlab.com/sc0ttj/Pkg)dnf
or yum
slackpkg
zypper
pkg
Help is welcome 👍
GNU Public License version 3. Please feel free to fork and modify this on GitHub (https://github.com/Cyclenerd/postinstall).