Update 'Vars.md'

This commit is contained in:
bprieshof
2019-09-15 23:12:43 +02:00
parent f4775268a2
commit c016e7b5ab

22
Vars.md
View File

@@ -1,7 +1,25 @@
# Standard variable definition # Standard variable definition
## Git-Repo
### repo: defines repo where the script is pulling from
Options
```
repo=https://git.ictmaatwerk.com/VPS-scripts/<Repo name>
```
### branch: defines branch where the script is pulling from (requires repo to be set)
Options
```
branch=<Branch name>
```
Usage
```
wget -t7 "$repo"/raw/branch/"$branch"/installer.sh
```
## Package manager ## Package manager
###PKGM: defines package manager ### PKGM: defines package manager
Options Options
``` ```
PKGM="apt" #Normal view PKGM="apt" #Normal view
@@ -13,7 +31,7 @@ As replacement for package manager command (example: apt)
Defining pakage manager for use in other Vars Defining pakage manager for use in other Vars
``` ```
###PKGI: defines command to install command (requires PKGM to be set) ### PKGI: defines command to install command (requires PKGM to be set)
Options Options
``` ```
PKGI="${PKGM} install -y" PKGI="${PKGM} install -y"