From 946d91df8ba778ef1bcbbdc1f1ad0952ca62775b Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 6 May 2016 09:07:06 +0800 Subject: [PATCH] update dokuwiki admin script --- README.md | 1 - dokuwiki/admin.sh | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c045809..f115a17 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ dockerfiles - [ ] cloudtunes - [ ] ffmpeg - [ ] freegeoip -- [ ] gitlab - [ ] gitolite - [ ] hashcat - [ ] irc diff --git a/dokuwiki/admin.sh b/dokuwiki/admin.sh index 5486cd0..de3e687 100755 --- a/dokuwiki/admin.sh +++ b/dokuwiki/admin.sh @@ -1,7 +1,12 @@ #!/bin/bash # -# dokuwiki backup/restore script +# DokuWiki backup/restore script # +# WARNING: It will mount current directory as a volume. +# Related files should be in current directory. +# + +cd "$(dirname "${BASH_SOURCE[0]}")" ACTION=${1:?action is required} FILENAME=${2:-dw-backup-$(date +%Y%m%d-%H%M%S).tar.gz}