From 7277c7b38b5938b161bf5cfb54d2f1829befd96b Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Mon, 1 Feb 2021 12:45:28 -0500 Subject: [PATCH] added file zipping to mcbe maint script --- src/mcbe/Containerfile | 2 +- src/mcbe/assets/bin/maint | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mcbe/Containerfile b/src/mcbe/Containerfile index 698d46e..975f142 100644 --- a/src/mcbe/Containerfile +++ b/src/mcbe/Containerfile @@ -19,7 +19,7 @@ ARG FILESUID=5000 ### # install packages we want -RUN apt update -y && apt install -y libcurl4 +RUN apt update -y && apt install -y libcurl4 zip # create minecraft server user with file owner UID RUN addgroup --gid $FILESUID mcadmin && \ diff --git a/src/mcbe/assets/bin/maint b/src/mcbe/assets/bin/maint index 144054a..a26dc0c 100755 --- a/src/mcbe/assets/bin/maint +++ b/src/mcbe/assets/bin/maint @@ -47,9 +47,9 @@ if [[ 10#$hour -eq 1 ]]; then fi # save daily and longterm backups - rm_ife worlds-daily-$day - mv worlds-hourly-$hour worlds-daily-$day + rm_ife worlds-daily-$day.zip + mv worlds-daily-$day worlds-hourly-$hour if [[ 10#$day -eq 1 ]]; then - mv worlds-daily-$day worlds-$year-$month-$day + mv worlds-daily-$day.zip worlds-$year-$month-$day.zip fi fi