Changeset 14bcaee for common/libs/func_validate_configs.sh
- Timestamp:
- 03/20/2017 02:12:25 PM (8 years ago)
- Branches:
- new_features
- Children:
- 89b7cce
- Parents:
- 76cf25f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_validate_configs.sh
r76cf25f r14bcaee 80 80 echo -e "`eval echo ${ERROR_MSG_pt1}`" >&2 81 81 echo -e "`eval echo ${ERROR_MSG_pt2}`" >&2 82 echo -e "${DD_BORDER}\n" 83 exit 1 84 } 85 86 # This function is only used when testing package management files. 87 write_pkg_and_die() { 88 echo -e "\n${DD_BORDER}" 89 echo "Package management is requested but" >&2 90 echo -e $* >&2 82 91 echo -e "${DD_BORDER}\n" 83 92 exit 1 … … 193 202 ;; 194 203 204 # Case of PKGMNGT: two files, packageManager.xml and packInstall.sh 205 # must exist in $PKGMNGTDIR: 206 PKGMNGT) echo -e "`eval echo $PARAM_VALS`" 207 if [ ! -e "$PKGMNGTDIR/packageManager.xml" ]; then 208 write_pkg_and_die $PKGMNGTDIR/packageManager.xml does not exist 209 fi 210 if [ ! -e "$PKGMNGTDIR/packInstall.sh" ]; then 211 write_pkg_and_die $PKGMNGTDIR/packInstall.sh does not exist 212 fi 213 if [ ! -s "$PKGMNGTDIR/packageManager.xml" ]; then 214 write_pkg_and_die $PKGMNGTDIR/packageManager.xml has zero size 215 fi 216 if [ ! -s "$PKGMNGTDIR/packInstall.sh" ]; then 217 write_pkg_and_die $PKGMNGTDIR/packInstall.sh has zero size 218 fi 219 if [ ! -r "$PKGMNGTDIR/packageManager.xml" ]; then 220 write_pkg_and_die $PKGMNGTDIR/packageManager.xml is not readable 221 fi 222 if [ ! -r "$PKGMNGTDIR/packInstall.sh" ]; then 223 write_pkg_and_die $PKGMNGTDIR/packInstall.sh is not readable 224 fi 225 ;; 195 226 # Display non-validated envars found in ${PROGNAME}_PARAM_LIST 196 227 * ) echo -e "`eval echo $PARAM_VALS`" ;;
Note:
See TracChangeset
for help on using the changeset viewer.