mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
upgradeFromGit : Move configuration variables in a local.sh file.
This commit is contained in:
parent
e7dd215dae
commit
2325989b62
3 changed files with 24 additions and 11 deletions
1
config.local/.gitignore
vendored
1
config.local/.gitignore
vendored
|
@ -3,3 +3,4 @@
|
||||||
*.tpl
|
*.tpl
|
||||||
*.tpl~
|
*.tpl~
|
||||||
*.orig
|
*.orig
|
||||||
|
*.sh
|
||||||
|
|
15
config.local/local.sh.example
Normal file
15
config.local/local.sh.example
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# List of local files which will be install in web root
|
||||||
|
LOCAL_FILES="
|
||||||
|
"
|
||||||
|
|
||||||
|
LOCAL_SAV_DIR="$ROOT_DIR/config.local"
|
||||||
|
LOG_FILE="$ROOT_DIR/upgrade.log"
|
||||||
|
|
||||||
|
# The theme name to install (optional)
|
||||||
|
#THEME="mytheme"
|
||||||
|
|
||||||
|
# Do doc export ?
|
||||||
|
DO_DOC=1
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
ROOT_DIR=$( cd `dirname $0`; pwd )
|
ROOT_DIR=$( cd `dirname $0`; pwd )
|
||||||
|
|
||||||
# List of local files which will be install in web root
|
# Import config
|
||||||
LOCAL_FILES="
|
if [ ! -f $ROOT_DIR/config.local/local.sh ]
|
||||||
"
|
then
|
||||||
|
echo "Error : You don't have create your own local.sh file in config.local directory. You could rely on the local.sh.example file to create your version."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
LOCAL_SAV_DIR="$ROOT_DIR/config.local"
|
source $ROOT_DIR/config.local/local.sh
|
||||||
LOG_FILE="$ROOT_DIR/upgrade.log"
|
|
||||||
|
|
||||||
# The theme name to install (optional)
|
|
||||||
#THEME="inha"
|
|
||||||
|
|
||||||
# Do doc export ?
|
|
||||||
DO_DOC=1
|
|
||||||
|
|
||||||
function msg() {
|
function msg() {
|
||||||
echo $2 "$1" | tee -a "$LOG_FILE"
|
echo $2 "$1" | tee -a "$LOG_FILE"
|
||||||
|
|
Loading…
Reference in a new issue