diff --git a/misc/install.sh b/misc/install.sh index d0523e3..250540f 100755 --- a/misc/install.sh +++ b/misc/install.sh @@ -209,12 +209,12 @@ elif [ "${1}" = "late" ]; then fi # syslog-ng - #if [ -f /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf ]; then - # cp -vfp /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf.bak - # sed -i 's/destination(d_scemd)/flags(final)/g' /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf - #else - # echo "scemd.conf does not exist." - #fi + if [ -f /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf ]; then + cp -vfp /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf.bak + sed -i 's/destination(d_scemd)/flags(final)/g' /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf + else + echo "scemd.conf does not exist." + fi if [ -f /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf ]; then cp -vfp /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf.bak