Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
update_ConfigDb.sh 522 B
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##/hosthome/} != ${1//\/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
fi
docker exec -it ${TANGO_CONTAINER_ENV} dsconfig json2tango --update ${1}