|  | @@ -342,12 +342,16 @@ chown -R cryptpad:cryptpad $CRYPTPAD_DIR
 | 
	
		
			
			| 342 | 342 |  su -c 'bower install' - cryptpad
 | 
	
		
			
			| 343 | 343 |  cp config.example.js config.js
 | 
	
		
			
			| 344 | 344 |  EOF
 | 
	
		
			
			|  | 345 | +    chmod +x $rootdir/usr/bin/install_cryptpad
 | 
	
		
			
			|  | 346 | +    chroor "$rootdir" /usr/bin/install_cryptpad
 | 
	
		
			
			| 345 | 347 |  
 | 
	
		
			
			| 346 | 348 |      if [ ! -f $rootdir$CRYPTPAD_DIR/config.js ]; then
 | 
	
		
			
			| 347 | 349 |          echo $'Cryptpad config file not found'
 | 
	
		
			
			| 348 | 350 |          exit 628252
 | 
	
		
			
			| 349 | 351 |      fi
 | 
	
		
			
			| 350 | 352 |  
 | 
	
		
			
			|  | 353 | +    rm $rootdir/usr/bin/install_cryptpad
 | 
	
		
			
			|  | 354 | +
 | 
	
		
			
			| 351 | 355 |      sed -i "s|httpPort:.*|httpPort: $CRYPTPAD_PORT,|g" $rootdir$CRYPTPAD_DIR/config.js
 | 
	
		
			
			| 352 | 356 |      sed -i "s|// domain:|domain:|g" $rootdir$CRYPTPAD_DIR/config.js
 | 
	
		
			
			| 353 | 357 |      sed -i 's|openFileLimit:.*|openFileLimit: 1024,|g' $rootdir$CRYPTPAD_DIR/config.js
 |