We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf6db5 commit 99307e8Copy full SHA for 99307e8
backup.sh
@@ -31,8 +31,8 @@ export XZ_DEFAULTS="-T 0"
31
32
DIR_BACKUP=/backup/temp
33
DIR_UPLOADED=/backup/uploaded
34
-mkdir $DIR_BACKUP 2>/dev/null
35
-mkdir $DIR_UPLOADED 2>/dev/null
+mkdir -p $DIR_BACKUP
+mkdir -p $DIR_UPLOADED
36
37
echo
38
EXITCODE=0
entrypoint.sh
@@ -12,6 +12,9 @@ else
12
./backup.sh --startup
13
# Create Ofelia config from template
14
export LOGGING=${LOGGING:-true}
15
+ if [ "$LOGGING" == "true" ]; then
16
+ mkdir -p /backup/ofelia
17
+ fi
18
export SCHEDULE=${SCHEDULE:-"@midnight"}
19
dockerize -template ofelia.ini.tmpl:/etc/ofelia/ofelia.ini
20
# Execute standard CMD from Dockerfile
0 commit comments