فهرست منبع

Updated rebuild-wekan.sh

Lauri Ojansivu 3 سال پیش
والد
کامیت
6f7292db5e
1فایلهای تغییر یافته به همراه9 افزوده شده و 11 حذف شده
  1. 9 11
      rebuild-wekan.sh

+ 9 - 11
rebuild-wekan.sh

@@ -20,7 +20,7 @@ do
         "Install Wekan dependencies")
 
 		if [[ "$OSTYPE" == "linux-gnu" ]]; then
-	                echo "Linux";
+			echo "Linux";
 			# Debian, Ubuntu, Mint
 			sudo apt-get install -y build-essential gcc g++ make git curl wget p7zip-full zip unzip unp
 			#curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
@@ -32,6 +32,14 @@ do
 			sudo npm -g install n
 			sudo n 12.22.8
 			sudo npm -g install npm
+			## Latest npm with Meteor 2.2
+			sudo npm -g install node-gyp
+			# Latest fibers for Meteor 2.2
+			sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
+			sudo npm -g install fibers
+			# Install Meteor, if it's not yet installed
+			sudo npm install -g meteor --unsafe-perm
+			#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
 		elif [[ "$OSTYPE" == "darwin"* ]]; then
 		        echo "macOS";
 			pause '1) Install XCode 2) Install Node 12.x from https://nodejs.org/en/ 3) Press [Enter] key to continue.'
@@ -56,16 +64,6 @@ do
 			exit;
 		fi
 
-		## Latest npm with Meteor 2.2
-		sudo npm -g install npm
-		sudo npm -g install node-gyp
-		# Latest fibers for Meteor 2.2
-		sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
-		sudo npm -g install fibers
-		# Install Meteor, if it's not yet installed
-    sudo npm install -g meteor --unsafe-perm
-		#curl https://install.meteor.com | bash
-		#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
 		break
 		;;