aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-30 15:34:24 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-30 15:34:24 +0000
commit44ccbd678ef12be9e0da24e6e371262ccc2ca812 (patch)
treed0851f5fb9c9b2b24228031c84eb9d0f6da5e300 /tools
parent7e6d731b1e1c5000ad0c65a4257f49dc28f841dc (diff)
downloadboca-44ccbd678ef12be9e0da24e6e371262ccc2ca812.tar.gz
boca-44ccbd678ef12be9e0da24e6e371262ccc2ca812.zip
fix permission of conf
Diffstat (limited to 'tools')
-rw-r--r--tools/boca-createdb.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/boca-createdb.sh b/tools/boca-createdb.sh
index c19f2a2..c230819 100644
--- a/tools/boca-createdb.sh
+++ b/tools/boca-createdb.sh
@@ -112,7 +112,9 @@ if [[ "x$bdcreated" == "x" || "$1" == "-f" ]] ; then
fi
if ! echo "$*" | grep -q 'nocreate'; then
- php ${bocadir}/src/private/createdb.php
+ php ${bocadir}/src/private/createdb.php
+ chown www-data.www-data ${bocadir}/src/private/conf.php
+ chmod 600 ${bocadir}/src/private/conf.php
fi
exit 0