forked from coolaj86/goldilocks.js
		
	WIP simpler installer
This commit is contained in:
		
							parent
							
								
									680cb05f89
								
							
						
					
					
						commit
						64fc41377f
					
				@ -56,6 +56,9 @@ export NPM_CONFIG_PREFIX=$my_app_dir/opt/goldilocks
 | 
			
		||||
http_bash "https://git.coolaj86.com/coolaj86/node-installer.sh/raw/v1.1/install.sh"
 | 
			
		||||
my_npm="$NPM_CONFIG_PREFIX/bin/npm"
 | 
			
		||||
$my_npm install -g npm@4
 | 
			
		||||
pushd $my_app_dir/opt/goldilocks/lib/node_modules/goldilocks
 | 
			
		||||
  $my_npm install
 | 
			
		||||
popd
 | 
			
		||||
pushd $my_app_dir/opt/goldilocks/lib/node_modules/goldilocks/packages/assets
 | 
			
		||||
  OAUTH3_GIT_URL="https://git.daplie.com/Oauth3/oauth3.js.git"
 | 
			
		||||
  git clone ${OAUTH3_GIT_URL} oauth3.org || true
 | 
			
		||||
@ -111,3 +114,6 @@ $sudo_cmd chown -R $my_user:$my_group $my_root/var/www $my_root/srv/www
 | 
			
		||||
# directories have the same owner and group.
 | 
			
		||||
$sudo_cmd chmod -R ug+rwX /opt/$my_app_name
 | 
			
		||||
find /opt/$my_app_name -type d -exec $sudo_cmd chmod ug+s {} \;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
rm -rf $my_app_dir
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user