Minecraft world download flow
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash --pure
|
||||
#! nix-shell -p gnutar xz
|
||||
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-25.11
|
||||
|
||||
set -e
|
||||
|
||||
WORLD=/home/h3lp/mineserver/world
|
||||
OUTPUT=/var/www/hostedfiles/world.tar.xz
|
||||
TMP=$(mktemp)
|
||||
|
||||
tar -cJf "$TMP" -C "$WORLD" .
|
||||
mv "$TMP" "$OUTPUT"
|
||||
|
||||
echo "Done: $OUTPUT"
|
||||
Reference in New Issue
Block a user