From 2d6c265dd85cf4554d98b8f1b4da9e2f36cd8f9e Mon Sep 17 00:00:00 2001 From: Kappeh Date: Tue, 15 Sep 2026 19:13:39 +0100 Subject: [PATCH] Add script to set time of day in beta server --- scripts/mark_daily_backup.sh | 0 scripts/time_set_day.sh | 8 ++++++++ 2 files changed, 8 insertions(+) mode change 100644 => 100755 scripts/mark_daily_backup.sh create mode 100755 scripts/time_set_day.sh 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 +