From c7cba39ee2fe07d65c4bb24d0d9cf3cff8348257 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Tue, 6 May 2025 23:30:23 +0200 Subject: [PATCH] v1.00 --- debian-installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian-installer.sh b/debian-installer.sh index 489658f..e6945cb 100644 --- a/debian-installer.sh +++ b/debian-installer.sh @@ -1,6 +1,6 @@ #!/bin/bash -INSTALLERVERSION="1.00" +INSTALLERVERSION="0.9" if [[ $(whoami) != "root" ]]; then echo "You must be root to run this script!" @@ -996,8 +996,8 @@ echo "the script and it will pickup from where it left off." echo if [[ ! -f settings.conf ]]; then - CPUCOUNT=$(cat cpuinfo | grep "^processor" | wc -l) - temp=($(cat meminfo | grep "^MemTotal")) + CPUCOUNT=$(cat /proc/cpuinfo | grep "^processor" | wc -l) + temp=($(cat /proc/meminfo | grep "^MemTotal")) temp=${temp[1]} SYSTEMRAM=$((temp/1000000)) echo "Detected CPUs : $CPUCOUNT (Recommended 4 or more)" @@ -1096,7 +1096,7 @@ if [[ $p -lt 2 ]]; then fi if [[ $p -lt 3 ]]; then - if [[ -z $SELF_UPDATED ]]; then + if [[ $SELF_UPDATED != 1 ]]; then echo "Checking if there is a newer version of this installer script..." NEWVERSION=$(curl -sSL "https://git.zaks.web.za/thisiszeev/perfect-nextcloud-installer/raw/branch/main/VERSION") if [[ ! "$NEWVERSION" =~ ^[0-9]+(\.[0-9]+)*$ ]]; then