NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

Create nested directory for backup

/home/myhome/dir1/dir2/ is not a directory create it now? The expected result is that it create the folder also if is nested.

5a56965a
Alice Ferrazzi <[email protected]> 7 years ago
helper-scripts/backup_and_restore.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Diff

diff --git a/helper-scripts/backup_and_restore.sh b/helper-scripts/backup_and_restore.sh
index d6e34c4a..48b6bdbf 100755
--- a/helper-scripts/backup_and_restore.sh
+++ b/helper-scripts/backup_and_restore.sh
@@ -36,7 +36,7 @@ if [[ ! -d ${BACKUP_LOCATION} ]]; then
   if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
     exit 1
   else
-    mkdir ${BACKUP_LOCATION}
+    mkdir -p ${BACKUP_LOCATION}
     chmod 755 ${BACKUP_LOCATION}
   fi
 else