|
@@ -37,7 +37,7 @@ if [ ! -x $(which sshpass) ];then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
|
|
-#Check directory and remove index.html (or didn't upgrade)
|
|
|
|
|
|
+#Check directory and create it
|
|
if [ ! -d $backupDir/$host ];then
|
|
if [ ! -d $backupDir/$host ];then
|
|
mkdir -p $backupDir/$host
|
|
mkdir -p $backupDir/$host
|
|
if [ $? != 0 ];then
|
|
if [ $? != 0 ];then
|