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.
2020-09-30 13:03:41 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 12:41:24 +02:00
2020-09-30 13:03:41 +02:00
2020-09-30 12:41:24 +02:00

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" = "cent8" ]; 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" = "cent8" ]; then
 echo "Command2: i run when Centos 8 is detected"
fi
Description
No description provided
Readme 33 KiB
Languages
Shell 100%