Skip to content

Commit

Permalink
Start installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 24, 2019
1 parent 23d4e75 commit 5aa3fa8
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
#!/bin/bash
echo The automated installer is currently WIP, please use the Composer global requirement method described on https://github.com/PhpGt/WebEngine/wiki/Installation
# 1) Check required software available: php, git, composer, docker:
INSTALLED_DOCKER=0
INSTALLED_COMPOSER=0
INSTALLED_PHP=0
INSTALLED_GIT=0

if [ "$(command -v docker)" ]
then
INSTALLED_DOCKER=1
fi

if [ "$(command -v composer)" ]
then
INSTALLED_COMPOSER=1
fi

if [ "$(command -v php)" ]
then
INSTALLED_PHP=1
fi

if [ "$(command -v git)" ]
then
INSTALLED_GIT=1
fi

if [ ]

case "$OSTYPE" in
linux*)
;;
darwin*)
;;
msys*)

esac
#Prefer to do everything through docker if available, but give option to user
#Add composer bin directory to PATH if not already
#Global composer install

0 comments on commit 5aa3fa8

Please sign in to comment.