mirror of
https://github.com/RasppleII/a2server.git
synced 2025-02-07 04:31:02 +00:00
Fix stupid logic error bug
We need a more robust way to detect whether netatalk is installed or needs to be installed, the current check by a2server version isn't very reliable anyway, assuming that netatalk will always be hand-compiled and never upgraded. But for now at least, let's fix my idiot mistake.
This commit is contained in:
parent
f3ae970d37
commit
6229dba43f
@ -48,7 +48,7 @@ if [[ -f /usr/local/etc/A2SERVER-version ]]; then
|
||||
read a2sVersion </usr/local/etc/A2SERVER-version
|
||||
fi
|
||||
# If A2SERVER 101 or greater is installed, we already did this and can skip it.
|
||||
if [[ "$a2sVersion" != *.*.* && "$a2sVersion" -lt 101 ]]; then
|
||||
if [[ "$a2sVersion" != *.*.* || "$a2sVersion" -lt 101 ]]; then
|
||||
echo "A2SERVER: Installing Netatalk (this will take a while)..."
|
||||
# stop Netatalk and samba if running (during upgrade)
|
||||
if [[ $(ps --no-headers -C afpd) ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user