Changeset 3aa1acd for common/libs/func_validate_configs.sh
- Timestamp:
- 03/19/2017 02:54:28 PM (8 years ago)
- Branches:
- 2.4, ablfs-more, legacy, trunk
- Children:
- 9da16d9
- Parents:
- 70ea617
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_validate_configs.sh
r70ea617 r3aa1acd 77 77 echo -e "`eval echo ${ERROR_MSG_pt1}`" >&2 78 78 echo -e "`eval echo ${ERROR_MSG_pt2}`" >&2 79 echo -e "${DD_BORDER}\n" 80 exit 1 81 } 82 83 # This function is only used when testing package management files. 84 write_pkg_and_die() { 85 echo -e "\n${DD_BORDER}" 86 echo "Package management is requested but" >&2 87 echo -e $* >&2 79 88 echo -e "${DD_BORDER}\n" 80 89 exit 1 … … 185 194 ;; 186 195 196 # Case of PKGMNGT: two files, packageManager.xml and packInstall.sh 197 # must exist in $PKGMNGTDIR: 198 PKGMNGT) echo -e "`eval echo $PARAM_VALS`" 199 if [ ! -e "$PKGMNGTDIR/packageManager.xml" ]; then 200 write_pkg_and_die $PKGMNGTDIR/packageManager.xml does not exist 201 fi 202 if [ ! -e "$PKGMNGTDIR/packInstall.sh" ]; then 203 write_pkg_and_die $PKGMNGTDIR/packInstall.sh does not exist 204 fi 205 if [ ! -s "$PKGMNGTDIR/packageManager.xml" ]; then 206 write_pkg_and_die $PKGMNGTDIR/packageManager.xml has zero size 207 fi 208 if [ ! -s "$PKGMNGTDIR/packInstall.sh" ]; then 209 write_pkg_and_die $PKGMNGTDIR/packInstall.sh has zero size 210 fi 211 if [ ! -r "$PKGMNGTDIR/packageManager.xml" ]; then 212 write_pkg_and_die $PKGMNGTDIR/packageManager.xml is not readable 213 fi 214 if [ ! -r "$PKGMNGTDIR/packInstall.sh" ]; then 215 write_pkg_and_die $PKGMNGTDIR/packInstall.sh is not readable 216 fi 217 ;; 187 218 # Display non-validated envars found in ${PROGNAME}_PARAM_LIST 188 219 * ) echo -e "`eval echo $PARAM_VALS`" ;;
Note:
See TracChangeset
for help on using the changeset viewer.