Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 9f0869df0015872fd0224cbc2f1d1ccc > scriptlet

syslog-ng-3.3.11-1.fc18.x86_64.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable syslog-ng.service > /dev/null 2>&1 || : 
        /usr/bin/systemctl stop syslog-ng.service > /dev/null 2>&1 || : 
fi

POSTIN

/bin/sh
ldconfig

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        /usr/bin/systemctl preset syslog-ng.service >/dev/null 2>&1 || : 
fi

POSTUN

/bin/sh
ldconfig

/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : 
if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        /usr/bin/systemctl try-restart syslog-ng.service >/dev/null 2>&1 || : 
fi

Triggers

syslog-ng < 3.2.3

/bin/sh
if /sbin/chkconfig --level 3 syslog-ng ; then
    /bin/systemctl enable syslog-ng.service >/dev/null 2>&1 || :
fi

vim-common

/bin/sh
VIMVERNEW=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | tail -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
[ -d /usr/share/vim/vim${VIMVERNEW}/syntax ] && \
    cd /usr/share/vim/vim${VIMVERNEW}/syntax && \
    ln -sf ../../../syslog-ng/syslog-ng.vim . || :

vim-common

/bin/sh
VIMVEROLD=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | head -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
[ $2 = 0 ] && rm -f /usr/share/vim/vim${VIMVEROLD}/syntax/syslog-ng.vim || :

vim-common

/bin/sh
VIMVEROLD=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | head -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
VIMVERNEW=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | tail -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
if [ $1 = 1 ]; then
    rm -f /usr/share/vim/vim${VIMVEROLD}/syntax/syslog-ng.vim || :
    [ -d /usr/share/vim/vim${VIMVERNEW}/syntax ] && \
        cd /usr/share/vim/vim${VIMVERNEW}/syntax && \
        ln -sf ../../../syslog-ng/syslog-ng.vim . || :
fi