mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
moved git user password deletion command to the install script
This commit is contained in:
parent
b8266c0bf4
commit
fd6f0ffe35
@ -20,7 +20,7 @@ RUN /app/setup/install
|
||||
|
||||
ADD assets/config/ /app/setup/config/
|
||||
ADD assets/init /app/init
|
||||
RUN chmod 755 /app/init && passwd -d git
|
||||
RUN chmod 755 /app/init
|
||||
|
||||
ADD authorized_keys /root/.ssh/
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ SHELL_VERSION=1.9.4
|
||||
|
||||
# add git user
|
||||
adduser --disabled-login --gecos 'GitLab' git
|
||||
passwd -d git
|
||||
|
||||
rm -rf /home/git/.ssh
|
||||
sudo -u git -H mkdir -p /home/git/data/.ssh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user