Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > fa565ec696f42ee2997af6a2e24c1a11 > scriptlet

proftpd-1.3.4a-2.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user proftpd $1 ftp /var/ftp /bin/false

PREUN

/bin/sh
/usr/share/rpm-helper/del-service proftpd $1 proftpd 
if [ "$1" = 0 ]; then
 if [ -d /var/run/proftpd ]; then
  rm -rf /var/run/proftpd/*
 fi
fi

if [ -x /usr/sbin/xinetd ];then
/usr/share/rpm-helper/add-service proftpd $1 xinetd 
fi

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service proftpd $1 proftpd 

# xinetd reset
# Only do it if xinetd is there. -- Geoff
if [ -x /usr/sbin/xinetd ];then
/usr/share/rpm-helper/add-service proftpd $1 xinetd 
fi

# ftpusers creation
if [ ! -f /etc/ftpusers ]; then
    touch /etc/ftpusers
fi

USERS="root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody"
for i in $USERS ;do
        cat /etc/ftpusers | grep -q "^$i$" || echo $i >> /etc/ftpusers
done

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user proftpd $1 ftp