Leave user of wekan
container unchanged
This commit is contained in:
parent
5970d729af
commit
05d0d5a692
1 changed files with 0 additions and 22 deletions
|
@ -18,28 +18,6 @@ begin
|
||||||
installDockerService $argv
|
installDockerService $argv
|
||||||
end
|
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
|
function getServiceServers -V domain
|
||||||
printf "%s\0" $domain
|
printf "%s\0" $domain
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue