echo"FAILED: Checking variables, deployment_name: $DEPLOYMENTSNAME is incorrectly. Only letters, numbers and underscore are allowed. Example: deployment_A."
# checks that the path deployments-install_dir only contains slash, letters, numbers and underscore.
# It should be an absolute path.
set-e
INSTALLDIR=$1
regexpINSTALLDIRS="^\/[[:alnum:]_\/]*$"
echo"data: $INSTALLDIR"
if![[$INSTALLDIR=~ $regexpINSTALLDIRS]];then
echo"FAILED: Checking variables, install_dir: $INSTALLDIR is incorrectly. Should provide an absolute path, slash, letters, numbers and underscore are allowed. Example /srv/deployment_A."