[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

trigger question



I am working on a custom openssh rpm.
Does a trigger recognize rpm revision numbers ?


I have the folling line in a spec file for openssh-3.4p1-4, the reason for
this is because previously in my custom openssh-3.4p1-1 I erroneously
decided to remove the sshd user in the %postun, so after performing an
upgrade I am left without the sshd user.

I am attempting to write a trigger that will reinstall the sshd user if
openssh-3.4p1-1 is uninstalled, but  I encounter an error saying that it
is trying to execute a sciptlet from package openssh-3.4p1


%triggerpostun -- openssh = 3.4p1-1
 if [ x"$2" = x"0" ]; then
  /sbin/chkconfig --add sshd || exit 1
  grep "^sshd:" /etc/group >/dev/null || groupadd -g 74 -r sshd
  grep "^sshd:" /etc/passwd >/dev/null || useradd -u 74 -g 74 \
  -s /bin/true -M -r -d /var/empty/sshd -c "OpenSSH privsep user" sshd 2> /dev/null
 fi





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []