projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix import scripts.
[platal.git]
/
upgrade
/
inc
/
pervasive.sh
diff --git
a/upgrade/inc/pervasive.sh
b/upgrade/inc/pervasive.sh
index
f2eebd0
..
ede0942
100755
(executable)
--- a/
upgrade/inc/pervasive.sh
+++ b/
upgrade/inc/pervasive.sh
@@
-5,16
+5,16
@@
MYSQL='mysql -u admin '
set -e
set -e
-if [ "$UID" != 0 ]; then
- echo "has to be run as root"
- exit 1
-fi
+
#
if [ "$UID" != 0 ]; then
+
#
echo "has to be run as root"
+
#
exit 1
+
#
fi
if [[ -n "${DBPREFIX}" ]]; then
echo "Using non-default database ${DBPREFIX}x4dat."
fi
if [[ -n "${DBPREFIX}" ]]; then
echo "Using non-default database ${DBPREFIX}x4dat."
fi
-if [[ -
n
"${DATABASE}" ]]; then
-
declare -r
DATABASE="${DBPREFIX}x4dat"
+if [[ -
z
"${DATABASE}" ]]; then
+ DATABASE="${DBPREFIX}x4dat"
fi
function die() {
fi
function die() {