shell-host/docker/docker.inst

11 lines
456 B
Plaintext
Raw Normal View History

2024-02-24 07:55:46 -08:00
#!/bin/bash
if command -v docker >/dev/null; then
2024-02-27 10:52:57 -08:00
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
2024-02-24 07:55:46 -08:00
fi