echo"You must provide a file name for the TANGO_HOST DB dump!"
exit-1
# Check if the filename begins with /hosthome:
elif[${1##/hosthome/}!=${1//\/hosthome\//}];then
# Check if the filename begins with /hosthome/:
elif[${1:0:10}!=/hosthome/];then
echo"You must provide a filename that begins with \"/hosthome/\". Why is that? Because the file needs to be stored from within the container to the hosts file system and your HOME directory will be mounted as /hosthome."
echo"You must provide a file name for the TANGO_HOST DB dump!"
exit-1
# Check if the filename begins with /hosthome:
elif[${1##/hosthome/}!=${1//\/hosthome\//}];then
# Check if the filename begins with /hosthome/:
elif[${1:0:10}!=/hosthome/];then
echo"You must provide a filename that begins with \"/hosthome/\". Why is that? Because the file needs to be stored from within the container to the hosts file system and your HOME directory will be mounted as /hosthome."