logon_script: skip parts when parameters are wrong

This commit is contained in:
Daniel unbrot Pätzold
2026-05-08 13:04:40 +02:00
parent 01e5a3ba85
commit 08a0a6d2f0
+1 -3
View File
@@ -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
elog_add "Completed user scripts in software."
fi fi
elog_add "Completed user scripts in software."
elog_add "" elog_add ""
# Remove unused flatpak user installed software and data # Remove unused flatpak user installed software and data