File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,5 @@ RUN sed -i 's/robbyrussell/powerlevel9k\/powerlevel9k/' ~/.zshrc
34
34
RUN sed -i 's/ git/ git zsh-syntax-highlighting zsh-autosuggestions colored-man-colored/' ~/.zshrc
35
35
36
36
RUN cp ~/.zshrc ~/aa && echo export TERM="xterm-256color" > ~/.zshrc && cat ~/aa >> ~/.zshrc && rm ~/aa
37
+
38
+ VOLUME /etc
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- USER=util01
3
+ USER=$1
4
4
5
5
echo " User setup"
6
6
@@ -9,7 +9,7 @@ echo "$USER:mot2passe" | chpasswd
9
9
adduser $USER sudo
10
10
11
11
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
13
13
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
You can’t perform that action at this time.
0 commit comments