Merge branch 'master' of github.com:volkszaehler/volkszaehler.org
This commit is contained in:
commit
d31fc12e5b
3 changed files with 15 additions and 4 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,6 +1,3 @@
|
|||
[submodule "misc/controller/ethersex"]
|
||||
path = misc/controller/ethersex
|
||||
url = git://github.com/volkszaehler/ethersex.git
|
||||
[submodule "misc/frontend/fnordlicht"]
|
||||
path = misc/frontend/fnordlicht
|
||||
url = git://github.com/steffenvogel/libfn.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e364f1aec8afdd2f6c1cc9c99890c46f81afb953
|
|
@ -37,6 +37,8 @@ shopt -s nocasematch
|
|||
doctrine_git=git://github.com/doctrine/doctrine2.git
|
||||
doctrine_tar=http://www.doctrine-project.org/downloads/DoctrineORM-2.0.1-full.tar.gz
|
||||
vz_git=git://github.com/volkszaehler/volkszaehler.org.git
|
||||
PHP_MAJOR=`/usr/bin/php --version | /bin/grep "^PHP" | /usr/bin/awk ' { print $2 } ' | /usr/bin/cut -b 1 `
|
||||
PHP_MINOR=`/usr/bin/php --version | /bin/grep "^PHP" | /usr/bin/awk ' { print $2 } ' | /usr/bin/cut -b 3 `
|
||||
|
||||
ask() {
|
||||
question=$1
|
||||
|
@ -61,6 +63,19 @@ get_db_name() {
|
|||
db_name=$REPLY
|
||||
}
|
||||
|
||||
############
|
||||
# check prerequisites
|
||||
if [ ${PHP_MAJOR }-lt "5" ] ; then
|
||||
echo you need PHP version 5.3+ to run volkszaehler
|
||||
exit
|
||||
elif [ ${PHP_MAJOR} == "5" ]
|
||||
if [ ${PHP_MINOR }-lt "3" ] ; then
|
||||
echo you need PHP version 5.3+ to run volkszaehler
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
############
|
||||
echo
|
||||
echo doctrine setup...
|
||||
|
|
Loading…
Add table
Reference in a new issue