Skip to content

Commit 005be43

Browse files
author
samuel.gondouin
committed
Fix
1 parent 0d7bded commit 005be43

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ RUN sed -i 's/robbyrussell/powerlevel9k\/powerlevel9k/' ~/.zshrc
3434
RUN sed -i 's/ git/ git zsh-syntax-highlighting zsh-autosuggestions colored-man-colored/' ~/.zshrc
3535

3636
RUN cp ~/.zshrc ~/aa && echo export TERM="xterm-256color" > ~/.zshrc && cat ~/aa >> ~/.zshrc && rm ~/aa
37+
38+
VOLUME /etc

script/configuser.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
USER=util01
3+
USER=$1
44

55
echo "User setup"
66

@@ -9,7 +9,7 @@ echo "$USER:mot2passe" | chpasswd
99
adduser $USER sudo
1010

1111
cp ~/.zshrc /home/voluser/$USER/
12-
sed -i 's/ export ZSH=\"\/root\/.oh-my-zsh\"/export ZSH=\"\/home\/voluser\/$USER\/.oh-my-zsh\"/' /home/voluser/$USER/.zshrc
12+
sed -i 's/ export ZSH=\"\/root\/.oh-my-zsh\"/export ZSH=\"\/home\/voluser\/'$USER'\/.oh-my-zsh\"/' /home/voluser/$USER/.zshrc
1313
cp -R ~/.oh-my-zsh /home/voluser/$USER
14-
15-
14+
chown -R $USER:$USER /home/voluser/$USER/.oh-my-zsh
15+
chown -R $USER:$USER /home/voluser/$USER/.zshrc

0 commit comments

Comments
 (0)