diff --git a/scripts/mark_daily_backup.sh b/scripts/mark_daily_backup.sh old mode 100644 new mode 100755 diff --git a/scripts/time_set_day.sh b/scripts/time_set_day.sh new file mode 100755 index 0000000..3fcb4c3 --- /dev/null +++ b/scripts/time_set_day.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +CONTAINER_USER_ID="$(id -u minecraft_server)" + +if docker compose exec -T beta true > /dev/null 2>&1; then + docker compose exec -u "$CONTAINER_USER_ID" -T beta mc-send-to-console "time set 1000" > /dev/null 2>&1 +fi +