- cp -f ${datadir}/starlingx/ssh_config ${sysconfdir}/ssh/ssh_config
- cp -f ${datadir}/starlingx/sshd_config ${sysconfdir}/ssh/sshd_config
+ cp -f $D${datadir}/starlingx/ssh_config $D${sysconfdir}/ssh/ssh_config
+ cp -f $D${datadir}/starlingx/sshd_config $D${sysconfdir}/ssh/sshd_config
+
+ # enable syslog-ng service by default
+ OPTS=""
+ if [ -n "$D" ]; then
+ OPTS="--root=$D"
+ fi
+ if [ -z "$D" ]; then
+ systemctl daemon-reload
+ fi
+
+ systemctl $OPTS enable sshd.service
+
+ if [ -z "$D" ]; then
+ systemctl --no-block restart sshd.service
+ fi
+