X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=packaging%2Fcommon%2Fpre_inst_functions.sh;fp=packaging%2Fcommon%2Fpre_inst_functions.sh;h=95ac2be8ce5cceb9d2c480d3d38b7bed0257af85;hb=691567b16c13087b31ee4c2b6d038e57872fae82;hp=c2aecac13daf17cf7a14861cba3d6a25833689d2;hpb=cc7d7b45afc706099acf7ff2490ec5667d370651;p=debian%2Famanda diff --git a/packaging/common/pre_inst_functions.sh b/packaging/common/pre_inst_functions.sh index c2aecac..95ac2be 100644 --- a/packaging/common/pre_inst_functions.sh +++ b/packaging/common/pre_inst_functions.sh @@ -73,6 +73,14 @@ create_user() { esac } +add_profiles() { + # Solaris only: Add a comma separated list of rights profiles to the + # $amanda_user. Replaces any existing profiles listed on the account. + log_output_of usermod -P "\"$*\"" ${amanda_user} || { + logger "Warning: Rights profiles were not added. Some types of backup may not work until these rights profiles are givent to ${amanda_backup}: '$*'" + return 1; } +} + add_group() { # First, try to add the group, detect via return code if it # already exists. Then add ${amanda_user} to the group without