logon_script: skip parts when parameters are wrong
This commit is contained in:
@@ -168,8 +168,6 @@ if [ "${CLIENT_SOFTWARE_CUST_DST}" != "${SYSCONFIGPATH}/client_software_cust" ];
|
|||||||
echo "Error in config: Required parameter CLIENT_SOFTWARE_CUST_DST is missing or set wrong."
|
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."
|
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"
|
read -n 1 -s -r -p "Press any key to continue"
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
elog_add "Company delivered scripts in ${CLIENT_SOFTWARE_CUST_DST}"
|
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/"
|
for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); # list directories in the form "/tmp/dirname/"
|
||||||
@@ -194,8 +192,8 @@ else
|
|||||||
elog_add " ===================="
|
elog_add " ===================="
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
elog_add "Completed user scripts in software."
|
elog_add "Completed user scripts in software."
|
||||||
|
fi
|
||||||
elog_add ""
|
elog_add ""
|
||||||
|
|
||||||
# Remove unused flatpak user installed software and data
|
# Remove unused flatpak user installed software and data
|
||||||
|
|||||||
Reference in New Issue
Block a user