forked from obel1x/fedora-OEMDRV
KWallet-Service Setup introduced
This commit is contained in:
@@ -72,11 +72,13 @@ elog_add "Check the matching client rule:"
|
||||
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."
|
||||
elog_add "If you want to change: Please check the sudo rules in ipa and your group membership."
|
||||
elog_add "No matching IPA sudo rule found for the setup- script of this user, so the user is not allowed to run software setup."
|
||||
elog_add "This will not work, because necessary steps cannot be executed."
|
||||
elog_add "Please check the sudo rules in ipa and your group membership to make this work."
|
||||
elog_add "Hint: the rule must contain the !authenticate and setenv option to work."
|
||||
elog_add "A matching sudo rule could look like this: "'^'${SYSCONFIGPATH////'\/'}'\/system_setup\/sync_client_software\.sh.*$'
|
||||
elog_add "Skipping SW Install."
|
||||
elog_add "Skipping SW setup."
|
||||
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
||||
else
|
||||
# Check, if the rule is with Option !authenticate
|
||||
if [[ $RETTXT != *"!authenticate"* ]]; then
|
||||
@@ -88,7 +90,7 @@ else
|
||||
# Rule seems to be ok, executing script
|
||||
elog_add "Matching Sudo rule found."
|
||||
elog_add ""
|
||||
elog_add "Running client software install..."
|
||||
elog_add "Running client software sync..."
|
||||
elog_add_command "/usr/bin/sudo -n --preserve-env ${SYSCONFIGPATH}/system_setup/sync_client_software.sh install $1"
|
||||
#ERRTXT=$( { /usr/bin/sudo -n --preserve-env ${SYSCONFIGPATH}/system_setup/sync_client_software.sh install > >(tee -a ${LOGFILE}); } 2>&1 )
|
||||
#ERR=$?
|
||||
|
||||
Reference in New Issue
Block a user