Corrected an error message; added an empty version of the DB file

Former-commit-id: ea83e030e3
This commit is contained in:
Jérôme Schneider 2012-05-14 08:20:42 +02:00
parent ba9c4d6712
commit 38d3a6e104
3 changed files with 8 additions and 5 deletions

View file

@ -61,17 +61,17 @@ class Tools {
# Asserting DB file exists
if(!file_exists(PROJECT_SQLITE_FILE)) {
throw new \Exception("DB file does not exist. To create it, please copy 'Core/Resources/baikal.empty.sqlite' to 'Specific/db/baikal.sqlite'.");
throw new \Exception("DB file does not exist. To create it, please copy 'Core/Resources/db.empty.sqlite' to 'Specific/db/.ht.db.sqlite'");
}
# Asserting DB file is readable
if(!is_readable(PROJECT_SQLITE_FILE)) {
throw new \Exception("DB file is not readable. Please give read permissions to httpd user on file 'Specific/db/baikal.sqlite'.");
throw new \Exception("DB file is not readable. Please give read permissions to httpd user on file 'Specific/db/.ht.db.sqlite'.");
}
# Asserting DB file is writable
if(!is_writable(PROJECT_SQLITE_FILE)) {
throw new \Exception("DB file is not writable. Please give write permissions to httpd user on file 'Specific/db/baikal.sqlite'.");
throw new \Exception("DB file is not writable. Please give write permissions to httpd user on file 'Specific/db/.ht.db.sqlite'.");
}
# Asserting config file exists

View file

@ -8,13 +8,16 @@ echo "# by their target). Useful for FTP deployment"
echo "#"
echo "#"
BRANCH="mongoose"
BRANCH="master"
TARGETFILE="/tmp/package.zip"
SRCDIR="/Users/jeromeschneider/Desktop/Baikal/"
TEMPDIR="/tmp/baikal-flat-`date +%Y-%m-%d-%H-%M-%S`-temp"
TEMPDIRDEREFERENCE="/tmp/baikal-flat-`date +%Y-%m-%d-%H-%M-%S`"
# Export Project
mkdir $TEMPDIR && cd ../../../../ && git archive $BRANCH | tar -x -C $TEMPDIR
mkdir $TEMPDIR
cd $SRCDIR
git archive $BRANCH | tar -x -C $TEMPDIR
# Dereferencig symlinks
cp -RfL $TEMPDIR $TEMPDIRDEREFERENCE && \

Binary file not shown.