Merge pull request #5239 from probonopd/patch-2

avahi: do not delete ssh.service
This commit is contained in:
Christian Hewitt 2021-03-10 11:37:13 +04:00 committed by GitHub
commit 3f55efc77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,8 @@ post_makeinstall_target() {
sed -e "s,<port>22</port>,<port>22</port>\n <txt-record>path=/storage</txt-record>\n <txt-record>u=root</txt-record>,g" -i ${INSTALL}/etc/avahi/services/sftp-ssh.service sed -e "s,<port>22</port>,<port>22</port>\n <txt-record>path=/storage</txt-record>\n <txt-record>u=root</txt-record>,g" -i ${INSTALL}/etc/avahi/services/sftp-ssh.service
rm -rf ${INSTALL}/etc/avahi/avahi-dnsconfd.action rm -rf ${INSTALL}/etc/avahi/avahi-dnsconfd.action
rm -rf ${INSTALL}/etc/avahi/services/ssh.service
if [ ! ${SFTP_SERVER} = "yes" ]; then if [ ! ${SFTP_SERVER} = "yes" ]; then
rm -rf ${INSTALL}/etc/avahi/services/ssh.service
rm -rf ${INSTALL}/etc/avahi/services/sftp-ssh.service rm -rf ${INSTALL}/etc/avahi/services/sftp-ssh.service
fi fi
rm -rf ${INSTALL}/usr/lib/systemd rm -rf ${INSTALL}/usr/lib/systemd