diff options
Diffstat (limited to 'social/netatalk/netatalk.install')
-rw-r--r-- | social/netatalk/netatalk.install | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/social/netatalk/netatalk.install b/social/netatalk/netatalk.install index a385add10..629586531 100644 --- a/social/netatalk/netatalk.install +++ b/social/netatalk/netatalk.install @@ -2,11 +2,11 @@ post_install() { post_upgrade } post_upgrade() { - if [ "`grep -E '(cnid|atalkd|afpd)' /etc/rc.conf`" ];then + if [ -f /etc/rc.conf ] && [ "`grep -E '(cnid|atalkd|afpd)' /etc/rc.conf`" ];then echo '>>> Detected old netatalk daemon entries in'; echo '>>> /etc/rc.conf, please replace these with'; echo '>>> "netatalk" before restarting!'; - else echo '>>> Add "netatalk" to your DAEMONS list in /etc/rc.conf';fi + else echo '>>> Add "netatalk" to your DAEMONS list';fi echo '>>>'; if [ -f /etc/avahi/services/adisk.service ] || [ -f /etc/avahi/services/afpd.service ];then @@ -18,6 +18,3 @@ post_upgrade() { echo '>>> Found *.conf in /opt/netatalk, please'; echo '>>> migrate these to /etc/netatalk before restarting';fi } -pre_remove() { - rc.d stop netatalk -} |