X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=6ef62aa7d8805346129a4286c3273bdc6fa5e4ee;hb=df6b014a9ea544d6b360580ee76163b77a88fe4b;hp=9a89122e6399bc64892178fb541f0fba041b771d;hpb=62ba6e8cab796bedfe8a166bf56b393aa32fb398;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index 9a89122..6ef62aa 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -325,9 +325,11 @@ add_group_proc () { if ! getent group proc > /dev/null; then groupadd -g 99 proc log "groupadd -g 99 proc" - if [ -x /etc/init.d/oidentd -a -f /etc/default/oidentd ] && \ - egrep -q 'OIDENT_GROUP.*proc' /etc/default/oidentd; then - /etc/init.d/oidentd restart || true + + # update oidentd so it uses the proc group + if [ -x /etc/init.d/oidentd -a -f /etc/default/oidentd ]; then + check_and_sed 'OIDENT_GROUP.*proc' 's/\(OIDENT_GROUP\).*/\1=proc/' \ + /etc/default/oident && /etc/init.d/oidentd restart fi fi } @@ -505,38 +507,6 @@ upgrade_openldap () { dpkg --configure -a # try postinst again } -# instaliraj zadnji freeradius; uvjeti u queue fileovima -install_freeradius () { - pkgadd --force-yes freeradius-cn freeradius=1.0.5-0 freeradius-ldap=1.0.5-0 -} - -# tentatively remove obsolete option in xinetd.conf -fix_xinetd_conf () { - if [ -f /etc/xinetd.conf ]; then - check_and_sed 'log_on_failure.*RECORD' \ - 's/\(log_on_failure.*\)RECORD/\1/g' \ - /etc/xinetd.conf || true - fi -} - -# temporarily disable mod_ssl.conf in apache so that upgrade works -fix_mod_ssl_include() { - if [ -f /etc/apache/mod_ssl.conf ]; then - check_and_sed '^Include /etc/apache/mod_ssl\.conf' \ - 's,\(^Include[ ][ ]*/etc/apache/mod_ssl\.conf\),#\1,' \ - /etc/apache/httpd.conf || true - fi -} - -fix_proftpd_conf() { - if [ -f /etc/proftpd.conf ]; then - check_and_sed '^LsDefaultOptions' \ - 's,^LsDefaultOptions,ListOptions,' \ - /etc/proftpd.conf || true - fi - [ -x /etc/init.d/proftpd ] && /etc/init.d/proftpd restart || true -} - # fix /etc/dpkg/dpkg.cfg comment_force_overwrite () { if [ -f /etc/dpkg/dpkg.cfg ]; then @@ -548,21 +518,13 @@ comment_force_overwrite () { fi } -fix_aidexfer_conf() { - if [ -f /etc/aide/aidexfer.conf ]; then - check_and_sed '/usr/local/lib/aidexfer' \ - 's,/usr/local/lib/aidexfer,/usr/share/aidexfer,' \ - /etc/aide/aidexfer.conf || true - fi -} - fix_issue () { cat > /etc/issue < /etc/issue.net <