Corrected an error message; added an empty version of the DB file
Former-commit-id: ea83e030e3
This commit is contained in:
parent
ba9c4d6712
commit
38d3a6e104
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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 && \
|
||||
|
|
BIN
CoreVersions/0.2.0/Resources/db.empty.sqlite
Executable file
BIN
CoreVersions/0.2.0/Resources/db.empty.sqlite
Executable file
Binary file not shown.
Loading…
Reference in a new issue