Update 'Vars.md'
This commit is contained in:
22
Vars.md
22
Vars.md
@@ -1,7 +1,25 @@
|
||||
# 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
|
||||
###PKGM: defines package manager
|
||||
### PKGM: defines package manager
|
||||
Options
|
||||
```
|
||||
PKGM="apt" #Normal view
|
||||
@@ -13,7 +31,7 @@ As replacement for package manager command (example: apt)
|
||||
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
|
||||
```
|
||||
PKGI="${PKGM} install -y"
|
||||
|
||||
Reference in New Issue
Block a user