1 parent
0c4a78fe9d
commit
c7219c64e2
1 file changed
+6
-1
+6
-1
@@ -85,7 +85,7 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
|
|||||||
# remove only binaries and some docs, to allow for an upgrade of those
|
# remove only binaries and some docs, to allow for an upgrade of those
|
||||||
rm -rf bedrock_server *.so release-notes.txt bedrock_server_how_to.html valid_known_packs.json premium_cache 2> /dev/null
|
rm -rf bedrock_server *.so release-notes.txt bedrock_server_how_to.html valid_known_packs.json premium_cache 2> /dev/null
|
||||||
|
|
||||||
bkupDir=backup-pre-${VERSION}
|
bkupDir=/tmp/backup-pre-${VERSION}
|
||||||
# fixup any previous interrupted upgrades
|
# fixup any previous interrupted upgrades
|
||||||
rm -rf "${bkupDir}"
|
rm -rf "${bkupDir}"
|
||||||
for d in behavior_packs definitions minecraftpe resource_packs structures treatments world_templates
|
for d in behavior_packs definitions minecraftpe resource_packs structures treatments world_templates
|
||||||
@@ -96,6 +96,11 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
|
|||||||
mv $d $bkupDir
|
mv $d $bkupDir
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# remove any old previous backups
|
||||||
|
shopt -s nullglob
|
||||||
|
for d in backup-pre-*; do
|
||||||
|
rm -rf $d
|
||||||
|
done
|
||||||
|
|
||||||
# Do not overwrite existing files, which means the cleanup above needs to account for things
|
# Do not overwrite existing files, which means the cleanup above needs to account for things
|
||||||
# that MUST be replaced on upgrade
|
# that MUST be replaced on upgrade
|
||||||
|
|||||||
Reference in new issue
Block a user