From 3b009f6c12fff6c2654ea9934e8e877deea784fd Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Fri, 7 Apr 2023 14:43:50 +0200 Subject: [PATCH] fixed permissions in nyx-reset script added ability to launch containers as root (as the repo would be owned by root, hence the `-a` made no difference), now the permission get set correctly --- jobs/nyx-reset.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobs/nyx-reset.sh b/jobs/nyx-reset.sh index 1de9152..5f8d188 100755 --- a/jobs/nyx-reset.sh +++ b/jobs/nyx-reset.sh @@ -2,5 +2,6 @@ cd /opt/nyx docker compose stop nyx -cp -a default.db data/data/data.db +cp default.db data/data/data.db +chown 1000:1000 data/data/data.db docker compose start nyx