Sophie

Sophie

distrib > Mageia > 4 > x86_64 > media > core-updates > by-pkgid > 61b33c2646c84a679cdfe96387c44e75 > scriptlet

freeradius-2.2.0-5.1.mga4.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user freeradius $1 radius /var/log/radius/radacct /bin/false

PREUN

/bin/sh
/usr/share/rpm-helper/del-service freeradius $1 radiusd

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service freeradius $1 radiusd 
/usr/share/rpm-helper/create-file freeradius $1 /var/log/radius/radutmp radius radius 0644 
/usr/share/rpm-helper/create-file freeradius $1 /var/log/radius/radwtmp radius radius 0644 
/usr/share/rpm-helper/create-file freeradius $1 /var/log/radius/radius.log radius radius 0644 
/usr/share/rpm-helper/create-ssl-certificate freeradius $1 radiusd -g radius  
if [ $1 = 1 ]; then
    openssl dhparam -out  /etc/raddb/certs/dh 1024 2>&1 >/dev/null
    dd if=/dev/urandom of=/etc/raddb/certs/random count=10 2>&1 >/dev/null
    chgrp radius /etc/raddb/certs/random
fi

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user freeradius $1 radius