chattyness/stock/load.sh
Evan Carroll 6fb90e42c3 Rework avatars.
Now we have a concept of an avatar at the server, realm, and scene level
and we have the groundwork for a realm store. New uesrs no longer props,
they get a default avatar. New system supports gender
{male,female,neutral} and {child,adult}.
2026-01-22 21:04:27 -06:00

26 lines
662 B
Bash
Executable file

#!/bin/sh
# Load all stock assets into the server.
#
# Usage: ./stock/load.sh [--force|-f]
#
# Options:
# --force, -f Update existing assets instead of failing with 409 Conflict
# Get script directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Parse arguments
FORCE_FLAG=""
for arg in "$@"; do
case "$arg" in
--force|-f)
FORCE_FLAG="--force"
;;
esac
done
(cd "$SCRIPT_DIR/avatar" && ./upload-stockavatars.sh $FORCE_FLAG)
(cd "$SCRIPT_DIR/props" && ./upload-stockprops.sh $FORCE_FLAG)
# Create stock avatar from uploaded props and set as default
(cd "$SCRIPT_DIR/avatar" && ./create-stock-avatar.sh $FORCE_FLAG)