Browse Source

added file zipping to mcbe maint script

feature/startup-from-labels
Mar Alegre 4 years ago
parent
commit
7277c7b38b
  1. 2
      src/mcbe/Containerfile
  2. 6
      src/mcbe/assets/bin/maint

2
src/mcbe/Containerfile

@ -19,7 +19,7 @@ ARG FILESUID=5000
### ###
# install packages we want # 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 # create minecraft server user with file owner UID
RUN addgroup --gid $FILESUID mcadmin && \ RUN addgroup --gid $FILESUID mcadmin && \

6
src/mcbe/assets/bin/maint

@ -47,9 +47,9 @@ if [[ 10#$hour -eq 1 ]]; then
fi fi
# save daily and longterm backups # save daily and longterm backups
rm_ife worlds-daily-$day rm_ife worlds-daily-$day.zip
mv worlds-hourly-$hour worlds-daily-$day mv worlds-daily-$day worlds-hourly-$hour
if [[ 10#$day -eq 1 ]]; then 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
fi fi

Loading…
Cancel
Save