Leave user of wekan
container unchanged
This commit is contained in:
parent
04538d936a
commit
7e8314d42a
1 changed files with 0 additions and 22 deletions
|
@ -18,28 +18,6 @@ begin
|
|||
installDockerService $argv
|
||||
end
|
||||
|
||||
function configureSW -V dir -V service
|
||||
set -l uid
|
||||
set -l gid
|
||||
set -l user "$service"
|
||||
set -l root (getServiceRoot $argv)
|
||||
set -l data "data/wekan"
|
||||
configureDockerService $argv
|
||||
|
||||
and sudo useradd \
|
||||
--system \
|
||||
--shell /bin/false \
|
||||
--comment 'Wekan server' \
|
||||
--create-home \
|
||||
"$user"
|
||||
|
||||
set uid (id -u "$user")
|
||||
set gid (id -g "$user")
|
||||
USER="$uid:$gid" yq -i "$(getServiceKey "$service").user = env(USER)" "$root/docker-compose.base.yml"
|
||||
mkdir -p "$root/$data"
|
||||
chown -R "$uid:$gid" "$root/$data"
|
||||
end
|
||||
|
||||
function getServiceServers -V domain
|
||||
printf "%s\0" $domain
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue