소스 검색

easier installation

Gamaliel Espinoza 7 년 전
부모
커밋
40e2a920b2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      fourier_install.sh

+ 3 - 2
fourier_install.sh

@@ -19,8 +19,6 @@ mount_point=/media/datadrive
 echo "Fourier installer $installer_version"
 echo "Fourier installer $installer_version"
 echo "------------------------------------"
 echo "------------------------------------"
 
 
-sudo apt-get install -y python python-pip
-
 if [[ "$OSTYPE" == darwin* ]]; then
 if [[ "$OSTYPE" == darwin* ]]; then
 	programspath=~/fourier
 	programspath=~/fourier
 fi
 fi
@@ -37,6 +35,8 @@ read -p "How many receivers has this box? " RECEIVERS_COUNT
 read -p "Box ID (from API): " BOX_ID
 read -p "Box ID (from API): " BOX_ID
 read -p "API secret: " API_SECRET
 read -p "API secret: " API_SECRET
 
 
+sudo apt-get install -y python python-pip
+
 findmnt "$mount_point"
 findmnt "$mount_point"
 if [ "$?" -neq 0 ]; then
 if [ "$?" -neq 0 ]; then
 	echo -e 'Data drive is not mounted'
 	echo -e 'Data drive is not mounted'
@@ -104,6 +104,7 @@ else
 	sudo apt-get install -y curl
 	sudo apt-get install -y curl
 	sudo pip install requests
 	sudo pip install requests
 	sudo pip install python-firebase
 	sudo pip install python-firebase
+	sudo npm install -g http-server
 	cd tools
 	cd tools
 	sudo python ./setup.py install
 	sudo python ./setup.py install
 	cd ..
 	cd ..