瀏覽代碼

Fixes to rebuild-wekan.sh

Lauri Ojansivu 6 年之前
父節點
當前提交
b711cbae94
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      rebuild-wekan.sh

+ 8 - 3
rebuild-wekan.sh

@@ -73,9 +73,14 @@ do
 		if [[ "$OSTYPE" == "linux-gnu" ]]; then
 		if [[ "$OSTYPE" == "linux-gnu" ]]; then
 	                echo "Linux";
 	                echo "Linux";
 			# Debian, Ubuntu, Mint
 			# Debian, Ubuntu, Mint
-			sudo apt-get install -y build-essential gcc g++ make git curl wget
-			curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
-			sudo apt-get install -y nodejs
+			sudo apt-get install -y build-essential gcc g++ make git curl wget npm nodejs
+			sudo npm -g install npm
+			sudo chown wekan:wekan ../../.npm -R
+			#curl -0 -L https://npmjs.org/install.sh | sudo sh
+			sudo npm -g install n
+			sudo n 10.16.0
+			#curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
+			#sudo apt-get install -y nodejs
 		elif [[ "$OSTYPE" == "darwin"* ]]; then
 		elif [[ "$OSTYPE" == "darwin"* ]]; then
 		        echo "macOS";
 		        echo "macOS";
 			pause '1) Install XCode 2) Install Node 8.x from https://nodejs.org/en/ 3) Press [Enter] key to continue.'
 			pause '1) Install XCode 2) Install Node 8.x from https://nodejs.org/en/ 3) Press [Enter] key to continue.'