move /home/$USERNAME to always be /home/user
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -35,7 +35,6 @@ pip3 install black
|
||||
# install vim-go
|
||||
|
||||
sudo \
|
||||
--preserve-env=USERNAME_TO_ADD \
|
||||
--set-home \
|
||||
--non-interactive \
|
||||
-u $USERNAME_TO_ADD \
|
||||
|
||||
@@ -11,11 +11,6 @@ U="$USERNAME_TO_ADD"
|
||||
# original home
|
||||
OH="/hosthome"
|
||||
|
||||
# container home
|
||||
export HOME="/home/$U"
|
||||
|
||||
rsync -avP /home/template/ $HOME/
|
||||
|
||||
# link ~/.home to original home
|
||||
ln -s "/hosthome" $HOME/.home
|
||||
|
||||
|
||||
Reference in New Issue
Block a user