X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=6ef62aa7d8805346129a4286c3273bdc6fa5e4ee;hb=df6b014a9ea544d6b360580ee76163b77a88fe4b;hp=ac21431a1d3007a9874bbd76c7a35e422272b826;hpb=44ca3c64e35e1753189d1b17266371b7327f338f;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index ac21431..6ef62aa 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -327,7 +327,7 @@ add_group_proc () { log "groupadd -g 99 proc" # update oidentd so it uses the proc group - if [ -x /etc/init.d/oidentd -a -f /etc/default/oidentd ]; + 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 @@ -507,33 +507,6 @@ upgrade_openldap () { dpkg --configure -a # try postinst again } -# 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 @@ -545,14 +518,6 @@ 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 <