diff --git a/scripts/a2server-3-sharing.txt b/scripts/a2server-3-sharing.txt index fdc0270..61c48f9 100755 --- a/scripts/a2server-3-sharing.txt +++ b/scripts/a2server-3-sharing.txt @@ -56,9 +56,10 @@ if [[ $debianVersion ]]; then fi # skip this if already done -if [[ -f /usr/local/etc/A2SERVER-version && $(head -c 3 /usr/local/etc/A2SERVER-version) -ge 101 ]]; then - echo "A2SERVER: Netatalk is already installed." -else +if [[ -f /usr/local/etc/A2SERVER-version ]]; then + read a2sVersion /dev/null; then diff --git a/setup/index.txt b/setup/index.txt index ea38465..85f3086 100755 --- a/setup/index.txt +++ b/setup/index.txt @@ -9,7 +9,7 @@ # to download and execute, type: # wget ivanx.com/a2server/setup; source setup -a2serverVersion="151" +a2serverVersion="1.5.1" # Ensure URL we'll use ends in a / case "$A2SERVER_SCRIPT_URL" in @@ -35,8 +35,12 @@ if lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian'; then fi fi -if [ -f /usr/local/etc/A2SERVER-version ]; then - installedVersion="$(cat /usr/local/etc/A2SERVER-version)" +if [[ -f /usr/local/etc/A2SERVER-version ]]; then + read installedVersion