next #1
|
@ -4,7 +4,7 @@ pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)/../"
|
||||||
docker build -t sneak/work .
|
docker build -t sneak/work .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
docker rm -f work
|
||||||
# FIXME ssh host keys
|
# FIXME ssh host keys
|
||||||
docker run \
|
docker run \
|
||||||
-d \
|
-d \
|
||||||
|
|
|
@ -34,8 +34,11 @@ pip3 install black
|
||||||
# install prettier
|
# install prettier
|
||||||
# install vim-go
|
# install vim-go
|
||||||
|
|
||||||
|
echo chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
|
||||||
|
chown -Rv $UID_TO_ADD:$GID_TO_ADD /home/user
|
||||||
|
|
||||||
sudo \
|
sudo \
|
||||||
--set-home \
|
--set-home \
|
||||||
--non-interactive \
|
--non-interactive \
|
||||||
-u $USERNAME_TO_ADD \
|
-u $USERNAME_TO_ADD \
|
||||||
bash ./runuser.sh
|
bash ./user.sh
|
||||||
|
|
|
@ -10,7 +10,6 @@ U="$USERNAME_TO_ADD"
|
||||||
|
|
||||||
# original home
|
# original home
|
||||||
OH="/hosthome"
|
OH="/hosthome"
|
||||||
|
|
||||||
# link ~/.home to original home
|
# link ~/.home to original home
|
||||||
ln -s "/hosthome" $HOME/.home
|
ln -s "/hosthome" $HOME/.home
|
||||||
|
|
||||||
|
@ -20,6 +19,7 @@ export ZSH="$HOME/.zsh"
|
||||||
bash /tmp/installomz.sh --unattended --keep-zshrc
|
bash /tmp/installomz.sh --unattended --keep-zshrc
|
||||||
|
|
||||||
# link in ssh key from original home
|
# link in ssh key from original home
|
||||||
|
mkdir -p ~/.ssh
|
||||||
ln -s ~/.home/.ssh/id_rsa ~/.ssh/id_rsa
|
ln -s ~/.home/.ssh/id_rsa ~/.ssh/id_rsa
|
||||||
ln -s ~/.home/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub
|
ln -s ~/.home/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub
|
||||||
|
|
Loading…
Reference in New Issue