fix docker support install
This commit is contained in:
parent
2c3dec7bf9
commit
fa11e34555
5 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
|||
#!/bin/bash
|
||||
if command -v docker >/dev/null; then
|
||||
ln -s $BASH_SHELL_HOST/docker/docker $BASH_SHELL_HOST/load
|
||||
if [[ $BASH_SHELL_HOSTNAME ]]; then
|
||||
[[ ! -d $BASH_SHELL_HOSTNAME/load ]] && mkdir $BASH_SHELL_HOSTNAME/load
|
||||
ln -s $BASH_SHELL_HOST/docker/files/ $BASH_SHELL_HOSTNAME/load/docker
|
||||
ls -la $BASH_SHELL_HOSTNAME/load/docker
|
||||
else
|
||||
hostn=$(basename $BASH_SHELL_BASE)/$(hostnamectl hostname)
|
||||
[[ -d $hostn ]] && echo $hostn exists || echo $hostn does not exist
|
||||
fi
|
||||
fi
|
Loading…
Reference in a new issue