New customer software repository and small fixes #30

Merged
obel1x merged 15 commits from unbrot/fedora-OEMDRV:main into main 2026-05-08 17:11:23 +02:00
Showing only changes of commit 6293ba22f6 - Show all commits
+15 -5
View File
@@ -82,8 +82,6 @@ chmod ug+rwX,o=rX -R ${SYSCONFIGPATH}
#Make all install.sh executable #Make all install.sh executable
find ${SYSCONFIGPATH}/client_software -type f -name install.sh -exec chmod ug+x,o-x {} \; find ${SYSCONFIGPATH}/client_software -type f -name install.sh -exec chmod ug+x,o-x {} \;
find ${SYSCONFIGPATH}/client_software -type f -name user_run.sh -exec chmod ugo+x {} \; find ${SYSCONFIGPATH}/client_software -type f -name user_run.sh -exec chmod ugo+x {} \;
find ${SYSCONFIGPATH}/client_software_cust -type f -name install.sh -exec chmod ug+x,o-x {} \;
find ${SYSCONFIGPATH}/client_software_cust -type f -name user_run.sh -exec chmod ugo+x {} \;
# At first, sync central configs if they are configured to be synced # At first, sync central configs if they are configured to be synced
if [[ ! -z "${DISTCONFIGPATH_SRC}" ]]; then if [[ ! -z "${DISTCONFIGPATH_SRC}" ]]; then
@@ -206,9 +204,21 @@ else
fi fi
echo echo
# After Snc NC is not able to set permission the right way (like execution flag)
# So this need to be done again for new files coming in via sync
# we do it either with or without sync for better safety
chown root:${CLIENTADMINGROUP} -R ${SYSCONFIGPATH}
chmod ug+rwX,o=rX -R ${SYSCONFIGPATH}
#Make all install.sh executable
find ${SYSCONFIGPATH}/client_software -type f -name install.sh -exec chmod ug+x,o-x {} \;
find ${SYSCONFIGPATH}/client_software -type f -name user_run.sh -exec chmod ugo+x {} \;
find ${SYSCONFIGPATH}/client_software_cust -type f -name install.sh -exec chmod ug+x,o-x {} \;
find ${SYSCONFIGPATH}/client_software_cust -type f -name user_run.sh -exec chmod ugo+x {} \;
#Run customer setup #Run customer setup
if [ ! -z "${CLIENT_SOFTWARE_CUST_DST}" ]; then if [ ! -z "${CLIENT_SOFTWARE_CUST_DST}" ]; then
echo "Running company install scripts in user- context." echo "Running company install scripts in admin- context."
for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); do for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); do
DIR=${DIR%*/} # remove the trailing "/" DIR=${DIR%*/} # remove the trailing "/"
if [[ "$2." != "." ]] && [[ "${DIR}" != *"$2"* ]]; then if [[ "$2." != "." ]] && [[ "${DIR}" != *"$2"* ]]; then
@@ -231,7 +241,7 @@ else
echo " ====================" echo " ===================="
fi fi
done done
echo "Done running company install scripts in user- context." echo "Done running company install scripts in admin- context."
fi fi
fi fi
@@ -239,6 +249,6 @@ fi
echo "Removing unused Flatpak- Data." echo "Removing unused Flatpak- Data."
flatpak uninstall --unused -y flatpak uninstall --unused -y
echo "Sucessfully installed software." echo "Done running install scripts in admin- context."
echo "" echo ""
exit 0 exit 0