forked from obel1x/fedora-OEMDRV
logon_script: Add Check for right config values
sync_client_software move check to better place
This commit is contained in:
@@ -137,7 +137,6 @@ else
|
||||
fi
|
||||
|
||||
#Anyway run user scripts if existent
|
||||
#elog_add_command "${CLIENT_SOFTWARE_DST}/user_run.sh $1"
|
||||
elog_add "Running all software scripts in user- context."
|
||||
#1. Run the scripts, that are delivered by the package maintainers
|
||||
elog_add "Pre Installed scripts"
|
||||
@@ -164,7 +163,14 @@ do
|
||||
fi
|
||||
done
|
||||
#2. Run the scripts, that are delivered by the package maintainers
|
||||
if [ -d "${CLIENT_SOFTWARE_CUST_DST}" ]; then
|
||||
# To run scripts, the tepository path must always be set right (but maybe empty, which is fine)
|
||||
if [ "${CLIENT_SOFTWARE_CUST_DST}" != "${SYSCONFIGPATH}/client_software_cust" ]; then
|
||||
echo "Error in config: Required parameter CLIENT_SOFTWARE_CUST_DST is missing or set wrong."
|
||||
echo "Please relog and if the problem reoccures, contact your system admins to correct the Values."
|
||||
read -n 1 -s -r -p "Press any key to continue"
|
||||
echo
|
||||
exit 1
|
||||
else
|
||||
elog_add "Company delivered scripts in ${CLIENT_SOFTWARE_CUST_DST}"
|
||||
for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); # list directories in the form "/tmp/dirname/"
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user