Parcourir la source

No usar rola.me en la instalación de la caja

Hugo il y a 6 ans
Parent
commit
3fd273030d
1 fichiers modifiés avec 4 ajouts et 16 suppressions
  1. 4 16
      fourier_install.sh

+ 4 - 16
fourier_install.sh

@@ -1,8 +1,8 @@
-# version 1.0.2
+# version 1.0.4
 # install essential software
 # sudo apt-get update
 
-installer_version=1.0.3
+installer_version=1.0.4
 programspath=~/programs
 installerpath=$(pwd)
 configfile='/etc/fourier-config.json'
@@ -32,20 +32,8 @@ clonerepo() {
 
 read -p "Whats this box port (last 3 numbers with zero for padding)? " PORT
 read -p "How many receivers has this box? " RECEIVERS_COUNT
-read -p "Box ID (or rolame url id): " BOX_ID
-
-curl -f -H "Accept: text/plain" "https://rola.me/$BOX_ID" \
-			1>/tmp/fourier-api \
-			2>/dev/null
-
-if [ "$?" -eq 0 ]; then
-	IFS=':' read -ra APIDATA <<< "$(cat /tmp/fourier-api)"
-	BOX_ID="${APIDATA[0]}"
-	API_SECRET="${APIDATA[1]}"
-	rm /tmp/fourier-api
-else
-	read -p "API secret: " API_SECRET
-fi
+read -p "Box ID: " BOX_ID
+read -p "API secret: " API_SECRET
 
 sudo apt-get install -y python python-pip python-setuptools