Bug: Set rights for client sw

split function elog_add_command_subshell and elog_add_command
This commit is contained in:
Daniel Pätzold
2026-03-16 12:07:29 +01:00
parent 264d1d4931
commit fe8c7f1724
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ elog_add "Check the matching client rule:"
# RETNO = 0 , but the Output of "sudo -l -l" must als be checked, if there is an Option !authenticate in the returnung string, otherwise a failed installation cannot be
# divided from a missing sudo-rule
#
elog_add_command "/usr/bin/sudo -n -l -l ${SYSCONFIGPATH}/system_setup/sync_client_software.sh"
elog_add_command_subshell "/usr/bin/sudo -n -l -l ${SYSCONFIGPATH}/system_setup/sync_client_software.sh"
if [[ $RETNO -ne 0 ]]; then
elog_add "Error was no $RETNO"
elog_add "No matching IPA rule found for this user, so the user is not allowed to install software, skipping this."