config-files/syslog-ng-config/debian/deb_folder/postinst

15 lines
378 B
Bash

#!/bin/sh
set -e
cp /usr/share/starlingx/syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
cp /usr/share/starlingx/syslog-ng.logrotate /etc/logrotate.d/syslog
cp /usr/share/starlingx/syslog-ng.service /usr/lib/systemd/system/syslog-ng.service
chmod 700 /usr/sbin/fm_event_syslogger
chmod 755 /usr/sbin/sshlog
systemctl enable syslog-ng.service > /dev/null 2>&1 || :
#DEBHELPER#