]> ## netatalk - AFP for UNRAID ###2024.09.16 - fix: reworked bash scripts to better standards with more safety for strange configurational states - release note: due to continued interest this plugin will NOT BE DEPRECATED as previously announced ###2024.09.13b - important fix: address possible flock condition causing installation script to stall (thanks AgentXXL) ###2024.09.13a - fix: made optical changes regarding wording, positioning and helptexts on the AFP Settings page - fix: improved script security by handling of leading and trailing whitespaces in configurational values - new: use of plugin usage metric functions to aid development of new features and planning for plugin updates (toggleable) ###2024.07.21 - fix: updated plugin definition file for version compatibilities ###2024.03.09 - fix: important backend preparations for future UNRAID versions 6.13+ - fix: important dependencies preparations for future UNRAID versions 6.13+ ###2023.11.01 - new: updated AFP backends to netatalk 3.1.18 (upstream security fixes) ###2023.10.02 - new: reworked shell scripts to better (security) standards - new: added AFP backends for future UNRAID versions 6.13+ ###2023.10.01 - new: updated AFP backend to netatalk 3.1.17 (upstream bugfixes) ###2023.09.02 - fix: cleaning of old files from USB drive - new: reduce wait times for stuck AFP processes ###2023.09.01 - release note: welcome to the first version of the AFP package. - release note: please report any problems in the support topic. echo "Making sure all existing AFP services are stopped (before install/upgrade)..." if [ -x /etc/rc.d/rc.nafp ]; then if ! /etc/rc.d/rc.nafp stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The AFP installation script was not able to stop the services gracefully." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to complete any upgrades." echo "WARNING:" fi fi killall afp-poller >/dev/null 2>&1 exit 0 &pkgURL;/netatalk-3.1.18-x86_64-2_slack15.1.txz 0f4f8855029631e1e942c9779c08a782 &pkgURL;/openldap-2.4.59-x86_64-1_slack15.0.txz b3b4e18f947abf013c1dfbfa136803cd &pkgURL;/netatalk-3.1.18-x86_64-1_slack15.0.txz 3067ed6151e520d10283a1e57f0f26a8 &gitURL;/archive/&plgNAME;.txz &plgMD5; /etc/cron.daily/afp-poller conntest >/dev/null 2>&1 & echo "" echo "-------------------------------------------------------------" echo " netatalk - AFP for UNRAID has been installed." echo " Version: &version; / Plugin Maintainer: &author;" echo "-------------------------------------------------------------" echo "!! Please RESTART YOUR ARRAY after UPDATING the AFP plugin !!" echo "!! If you did not update, thanks for installing and ENJOY. !!" echo "-------------------------------------------------------------" echo "" echo "Making sure all existing AFP services are stopped (before uninstall)..." if [ -x /etc/rc.d/rc.nafp ]; then if ! /etc/rc.d/rc.nafp stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The AFP uninstallation script was not able to stop the services gracefully." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to remove any remaining packages." echo "WARNING:" fi fi killall afp-poller >/dev/null 2>&1 # check if OpenLDAP is used by another plugin if [ "$(find /boot/config/plugins/*.plg -type f ! -iname "*&name;.plg*" | xargs grep "openldap" -sl)" ]; then echo "OpenLDAP in use by another plugin, will not be removed together with AFP." rm -f &plgPATH;/openldap*.txz fi removepkg &plgPATH;/*.txz # clean up folders after the removed installation # in case of re-installation of package on live system rm -rf &plgPATH; rm -rf &emhttp; rm -rf /etc/netatalk rm -f /etc/avahi/services/netatalk.service rm -f /etc/cron.daily/afp-poller >/dev/null 2>&1 if [ -d /mnt/user ]; then if [ -d /mnt/user/system/nafp ]; then rm -rf /mnt/user/system/nafp fi else echo "" echo "WARNING: UNABLE TO REMOVE AFP DATABASE - IS THE ARRAY NOT STARTED?" echo "WARNING: RUN 'WIPE DB' (FROM AFP GUI) IF RE-INSTALLING THE PLUGIN." echo "WARNING:" echo "WARNING: This is not a problem except for taking up disk space." echo "WARNING: AFP database remains located at: /mnt/user/system/nafp" echo "" fi echo "" echo "-----------------------------------------------------------" echo " netatalk - AFP for UNRAID has been removed." echo " Version: &version; / Plugin Maintainer: &author;" echo "-----------------------------------------------------------" echo ""