v1.00
This commit is contained in:
parent
1c067f8cdc
commit
c7cba39ee2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue