From 82063a0bacfe8006e5d41fd9c16d1a484ca4dd8d Mon Sep 17 00:00:00 2001 From: rohhie Date: Sun, 30 Apr 2023 13:38:07 +0900 Subject: [PATCH] Change UID --- 01-setup.sh | 2 +- docker/docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/01-setup.sh b/01-setup.sh index 05a1e36..3781497 100755 --- a/01-setup.sh +++ b/01-setup.sh @@ -129,7 +129,7 @@ secho 5 echo "================================================" echo " ユーザーgitの作成" echo "================================================" -sudo useradd -m git +sudo useradd -u 1997 -m git if [ $? -ne 0 ]; then echo "処理を中止します" diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 13e7601..f5ad735 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -45,8 +45,8 @@ services: image: custom/gitea container_name: gitea environment: - - USER_UID=1001 - - USER_GID=1001 + - USER_UID=1997 + - USER_GID=1997 - GITEA__database__DB_TYPE=mysql - GITEA__database__HOST=db:3306 - GITEA__database__NAME=gitea