# Standard variable definition ## Git-Repo ### repo: defines repo where the script is pulling from Options ``` repo=https://git.ictmaatwerk.com/VPS-scripts/ ``` ### branch: defines branch where the script is pulling from (requires repo to be set) Options ``` branch= ``` Usage ``` wget -t7 "$repo"/raw/branch/"$branch"/installer.sh ``` ## Package manager ### PKGM: defines package manager Options ``` PKGM="apt" #Normal view PKGM="debconf-apt-progress -- apt" #Whiptail view ``` Usage ``` 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) Options ``` PKGI="${PKGM} install -y" ``` Usage ``` $PKGI ``` ###PKGA: defines command to add repo Options ``` PKGA="add-apt-repository" (software-properties-common is required) ``` Usage ``` $PKGA ppa:ondrej/php -y ``` ## Other ###OUTPUT: used to silence a script Options ``` OUTPUT='/dev/null' #Hide output OUTPUT='/dev/tty' #Display output ``` Usage ``` YourCommand > $OUTPUT 2>&1 ```