forked from unfoldingWord-dev/Door43
-
Notifications
You must be signed in to change notification settings - Fork 0
/
door43_bootstrap.sh
executable file
·45 lines (33 loc) · 1.03 KB
/
door43_bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
# -*- coding: utf8 -*-
#
# Copyright (c) 2015 unfoldingWord
# http://creativecommons.org/licenses/MIT/
# See LICENSE file for details.
#
# Contributors:
# Richard Mahn <richard_mahn@wycliffeassociates.org>
set -e
# DEBUG - true/false - If true, will run "set -x"
: ${DEBUG:=false}
# If running in DEBUG mode, output information about every command being run
$DEBUG && set -x
# If not will exit
$DEBUG || trap 'popd > /dev/null' EXIT SIGHUP SIGTERM
: ${DOOR43_DIR:=$(cd $(dirname "$0") && pwd)}
pushd $DOOR43_DIR > /dev/null
echo 'Putting config files in place...'
cp -f conf/local.php.dev conf/local.php
cp -f conf/plugins.local.php.dev conf/plugins.local.php
cp -f conf/acl.auth.php.dev conf/acl.auth.php
cp -f conf/users.auth.php.dev conf/users.auth.php
echo 'Making git configurations...'
git config core.fileMode false
echo 'Pulling submodules...'
git submodule init
git submodule update
echo 'Running composer to install packages'
php composer.phar install
$DOOR43_DIR/install_languages.sh
echo "DONE!"
echo ""