avahi: set root user as default for published sftp

This commit is contained in:
queeup 2019-11-13 19:52:40 +03:00
parent 27a56739af
commit c99f990024

View File

@ -64,6 +64,8 @@ post_makeinstall_target() {
sed -e "s,^.*publish-workstation=.*$,publish-workstation=no,g" -i $INSTALL/etc/avahi/avahi-daemon.conf
# browse domains?
sed -e "s,^.*browse-domains=.*$,# browse-domains=,g" -i $INSTALL/etc/avahi/avahi-daemon.conf
# set root user as default
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/services/ssh.service