#!/usr/bin/env bash
echo "Running lsw-postinstall scripts"
for FILE in /opt/lsw-postinstall.d/*
do
echo "==> Running ${FILE}"
if [ -x "${FILE}" ]
then
${FILE}
EXITCODE=$?
else
bash "${FILE}"
EXITCODE=$?
fi
echo "==> Done Running ${FILE} with exit code ${EXITCODE}"
done
echo "All done!"