Skip to content
Snippets Groups Projects
Commit 1a4876ca authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Change deployment paths for TANGO to /opt/lofar2.0/*

parent 97d4a151
No related branches found
No related tags found
No related merge requests found
if [ ${#} -ne 1 ]; then if [ ${#} -ne 1 ]; then
echo "You must provide a file name for the TANGO_HOST DB dump!" echo "You must provide a file name for the TANGO_HOST DB dump!"
exit -1 exit -1
# Check if the filename begins with /hosthome/, /opt/tango or /opt/lofar: # Check if the filename begins with /hosthome/, /opt/lofar2.0/tango or /opt/lofar2.0/:
elif [ ${1:0:10} != /hosthome/ -a ${1:0:11} != /opt/tango/ -a ${1:0:11} != /opt/lofar/ ]; then elif [ ${1:0:10} != /hosthome/ -a ${1:0:20} != /opt/lofar2.0/tango/ -a ${1:0:14} != /opt/lofar2.0/ ]; then
echo "You must provide a full file path that begins with one of \"/hosthome/\", \"/opt/tango/\" or \"/opt/lofar/\". Why is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container." echo "You must provide a full file path that begins with one of \"/hosthome/\", \"/opt/lofar2.0/tango/\" or \"/opt/lofar2.0/\". Why is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container."
exit -2 exit -2
fi fi
......
if [ ${#} -ne 1 ]; then if [ ${#} -ne 1 ]; then
echo "You must provide a file name for the TANGO_HOST DB dump!" echo "You must provide a file name for the TANGO_HOST DB dump!"
exit -1 exit -1
# Check if the filename begins with /hosthome/, /opt/tango or /opt/lofar: # Check if the filename begins with /hosthome/, /opt/lofar2.0/tango or /opt/lofar2.0/:
elif [ ${1:0:10} != /hosthome/ -a ${1:0:11} != /opt/tango/ -a ${1:0:11} != /opt/lofar/ ]; then elif [ ${1:0:10} != /hosthome/ -a ${1:0:20} != /opt/lofar2.0/tango/ -a ${1:0:14} != /opt/lofar2.0/ ]; then
echo "You must provide a full file path that begins with one of \"/hosthome/\", \"/opt/tango/\" or \"/opt/lofar/\". Why is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container." echo "You must provide a full file path that begins with one of \"/hosthome/\", \"/opt/lofar2.0/tango/\" or \"/opt/lofar2.0/\". Why is that? Because the file will be loaded from within the Docker container and only some of the host's file system directories are mounted in the container."
exit -2 exit -2
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment