|  | @@ -286,6 +286,7 @@ function install_cryptpad {
 | 
	
		
			
			| 286 | 286 |  
 | 
	
		
			
			| 287 | 287 |      npm install
 | 
	
		
			
			| 288 | 288 |      npm install -g bower@1.8.0
 | 
	
		
			
			|  | 289 | +    chown -R cryptpad:cryptpad $CRYPTPAD_DIR
 | 
	
		
			
			| 289 | 290 |      su -c 'bower install' - cryptpad
 | 
	
		
			
			| 290 | 291 |      cp config.example.js config.js
 | 
	
		
			
			| 291 | 292 |      if [ ! -f config.js ]; then
 | 
	
	
		
			
			|  | @@ -333,6 +334,10 @@ function install_cryptpad {
 | 
	
		
			
			| 333 | 334 |      fi
 | 
	
		
			
			| 334 | 335 |      chown -R cryptpad:cryptpad $CRYPTPAD_DIR
 | 
	
		
			
			| 335 | 336 |  
 | 
	
		
			
			|  | 337 | +    # install again
 | 
	
		
			
			|  | 338 | +    cd $CRYPTPAD_DIR
 | 
	
		
			
			|  | 339 | +    su -c 'bower install' - cryptpad
 | 
	
		
			
			|  | 340 | +
 | 
	
		
			
			| 336 | 341 |      systemctl restart nginx
 | 
	
		
			
			| 337 | 342 |  
 | 
	
		
			
			| 338 | 343 |      APP_INSTALLED=1
 |