Imported Upstream version 3.3.3
[debian/amanda] / packaging / common / pre_inst_functions.sh
index c2aecac13daf17cf7a14861cba3d6a25833689d2..95ac2be8ce5cceb9d2c480d3d38b7bed0257af85 100644 (file)
@@ -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