Skip to content
Snippets Groups Projects
update_ConfigDb.sh 508 B
Newer Older
if [ ${#} -ne 1 ]; then
    echo "You must provide a file name for the TANGO_HOST DB dump!"
    exit -1
# 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."
    exit -2
docker exec -it ${TANGO_CONTAINER_ENV} dsconfig json2tango --update ${1}