feat(blueprint.sh): add checks to see if dependencies are installed
This commit is contained in:
parent
560c9a1fc0
commit
6b5ce812f0
1 changed files with 16 additions and 0 deletions
16
blueprint.sh
16
blueprint.sh
|
@ -8,6 +8,22 @@
|
||||||
# the Blueprint installation script will not change anything in any files besides blueprint.sh.
|
# the Blueprint installation script will not change anything in any files besides blueprint.sh.
|
||||||
FOLDER="/var/www/pterodactyl"
|
FOLDER="/var/www/pterodactyl"
|
||||||
|
|
||||||
|
# Check if required programs are installed
|
||||||
|
if ! [ -x "$(command -v unzip)" ]; then
|
||||||
|
log_red '[FATAL] Required dependency unzip is not installed or detected.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v node)" ]; then
|
||||||
|
log_red '[FATAL] Required depencency node is not installed or detected.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v yarn)" ]; then
|
||||||
|
log_red '[FATAL] Required depencendy yarn is not installed or detected.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for panels that are using Docker.
|
# Check for panels that are using Docker.
|
||||||
if [[ -f ".dockerenv" ]]; then
|
if [[ -f ".dockerenv" ]]; then
|
||||||
DOCKER="y";
|
DOCKER="y";
|
||||||
|
|
Loading…
Reference in a new issue