11 lines
456 B
Bash
Executable File
11 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
if command -v docker >/dev/null; then
|
|
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 |