Conversation
|
@benjamink Was it only the binaries that were in a different location from what the netatalk2 module expected? For your reference, this is what we have as the default config right now: https://github.com/Netatalk/netatalk-webmin/blob/branch-netatalk2/config When I set this script up, my goal was to align with the default locations that you get when using the netatalk install script in easyinstall.sh. Before making any changes, I want to double check that the afpd binaries get installed in |
|
Confirmed the default location: |
easyinstall.sh
Outdated
| wget -O netatalk2-wbm.tgz "https://github.com/Netatalk/netatalk-webmin/releases/download/netatalk2-$WEBMIN_MODULE_VERSION/netatalk2-wbm-$WEBMIN_MODULE_VERSION.tgz" </dev/null | ||
| sudo /usr/share/webmin/install-module.pl netatalk2-wbm.tgz | ||
| sudo sed -i 's/\/sbin/\/local\/sbin/' /etc/webmin/netatalk2/config | ||
| sudo systemctl restart webmin |
There was a problem hiding this comment.
I don't think the restart is required here. The updated config should be read immediately by the webmin module.
There was a problem hiding this comment.
Ah, ok. Removed.
easyinstall.sh
Outdated
| rm netatalk2-wbm.tgz || true | ||
| wget -O netatalk2-wbm.tgz "https://github.com/Netatalk/netatalk-webmin/releases/download/netatalk2-$WEBMIN_MODULE_VERSION/netatalk2-wbm-$WEBMIN_MODULE_VERSION.tgz" </dev/null | ||
| sudo /usr/share/webmin/install-module.pl netatalk2-wbm.tgz | ||
| sudo sed -i 's/\/sbin/\/local\/sbin/' /etc/webmin/netatalk2/config |
There was a problem hiding this comment.
This is stylistic suggestion for readability, but when operating on strings with slashes in them, I recommend using a different delimiter for the s command. I think I used @ elsewhere in this script.
https://backreference.org/2010/02/20/using-different-delimiters-in-sed/index.html
Fixes #1304