This repository has been archived on 2023-05-21 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
cdf67a0f9372aba5f6a7016e11be4635afedb5bf
SimpleInstall (based on Web-V2)
Easily create a install script for Linux
File Explanation
| File Name | Description |
|---|---|
| SimpleInstall.sh | Main install script |
| preconf.sh | Pre config script runs before installing packages form *.pkg.list |
| conf.sh | Configuration script runs after installing packages form *.pkg.list |
| generic.pkg.list | packagelist for all distro's |
| apt.pkg.list | packagelist for distro's that use apt |
| dnf.pkg.list | packagelist for distro's that use dnf/yum |
| config/* | Directory for config files |
OS Handeling in preconf and conf.sh
Run a single command based on OS
Example: Centos 8
if [ "$shortdist" = "el8" ]; then
echo "i run when Centos 8 is detected"
fi
Run commands for mutiple OS's
Example: Debian 10, Ubuntu 18.04 or Ubuntu 20.04
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
echo "i run when Ubuntu 18.04/20.04 or debian 10 is detected"
fi
Run diffrent commands based on OS
Example: run Command1 if Debian 10 is detected and run Command2 if Centos 8 is detected
if [ "$shortdist" = "deb10" ] ; then
echo "Command1: i debian 10 is detected"
elif [ "$shortdist" = "el8" ]; then
echo "Command2: i run when Centos 8 is detected"
fi
Description
Languages
Shell
100%