mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed error mysqldump
This commit is contained in:
parent
13b78ae450
commit
621e0ee9d9
@ -32,6 +32,7 @@ QUIET=0
|
|||||||
RESTOREFILES=0
|
RESTOREFILES=0
|
||||||
DATABASE=1
|
DATABASE=1
|
||||||
TIMESTAMP=`date +"%Y-%m-%d-%H-%M-%S"`
|
TIMESTAMP=`date +"%Y-%m-%d-%H-%M-%S"`
|
||||||
|
MDE=1
|
||||||
|
|
||||||
# Main parsing code
|
# Main parsing code
|
||||||
|
|
||||||
@ -71,7 +72,13 @@ done
|
|||||||
# Execution
|
# Execution
|
||||||
|
|
||||||
which mysqldump &>/dev/null
|
which mysqldump &>/dev/null
|
||||||
[ $? -eq 0 ] || echo -e "Command Mysqldump not found. \nIn order to make backups it is necessary to have mysqldump on your console."
|
[ $? -eq 0 ] || MDE=0
|
||||||
|
|
||||||
|
if [ $MDE == 0 ]
|
||||||
|
then
|
||||||
|
echo -e "Command Mysqldump not found. \nIn order to make backups it is necessary to have mysqldump on your console.\nAborting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -e "$PANDORAPATH/include/config.php" ]
|
if [ ! -e "$PANDORAPATH/include/config.php" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user