|  | @@ -36,6 +36,7 @@ app_repo="TODO"
 | 
	
		
			
			| 36 | 36 |  app_repo_commit='TODO'
 | 
	
		
			
			| 37 | 37 |  app_php=
 | 
	
		
			
			| 38 | 38 |  app_node=
 | 
	
		
			
			|  | 39 | +app_nodeapp=
 | 
	
		
			
			| 39 | 40 |  app_onion_only=
 | 
	
		
			
			| 40 | 41 |  app_port=
 | 
	
		
			
			| 41 | 42 |  app_port_internal=
 | 
	
	
		
			
			|  | @@ -63,6 +64,7 @@ function show_help {
 | 
	
		
			
			| 63 | 64 |      echo $'     --port [number]                   Port number for the app'
 | 
	
		
			
			| 64 | 65 |      echo $'     --portinternal [number]           Internal port between a daemon and the web server'
 | 
	
		
			
			| 65 | 66 |      echo $'     --node [yes|no]                   Is this a nodejs app?'
 | 
	
		
			
			|  | 67 | +    echo $'     --nodeapp [package]               Specify a nodejs package to install'
 | 
	
		
			
			| 66 | 68 |      echo $'  -o --onion [yes|no]                  Is this app only available on an onion address?'
 | 
	
		
			
			| 67 | 69 |      echo $'  -p --php [yes|no]                    Is this a PHP app?'
 | 
	
		
			
			| 68 | 70 |      echo $'  -s --daemon [yes|no]                 Add a daemon'
 | 
	
	
		
			
			|  | @@ -116,6 +118,10 @@ do
 | 
	
		
			
			| 116 | 118 |              shift
 | 
	
		
			
			| 117 | 119 |              app_node="$1"
 | 
	
		
			
			| 118 | 120 |              ;;
 | 
	
		
			
			|  | 121 | +        --nodeapp)
 | 
	
		
			
			|  | 122 | +            shift
 | 
	
		
			
			|  | 123 | +            app_nodeapp="$1"
 | 
	
		
			
			|  | 124 | +            ;;
 | 
	
		
			
			| 119 | 125 |          -s|--daemon|--systemd)
 | 
	
		
			
			| 120 | 126 |              shift
 | 
	
		
			
			| 121 | 127 |              if [[ "$1" == 'yes' ]]; then
 | 
	
	
		
			
			|  | @@ -193,6 +199,10 @@ if [[ "$your_email" != *'@'* ]]; then
 | 
	
		
			
			| 193 | 199 |      exit 8
 | 
	
		
			
			| 194 | 200 |  fi
 | 
	
		
			
			| 195 | 201 |  
 | 
	
		
			
			|  | 202 | +if [ "$app_nodeapp" ]; then
 | 
	
		
			
			|  | 203 | +    app_node='yes'
 | 
	
		
			
			|  | 204 | +fi
 | 
	
		
			
			|  | 205 | +
 | 
	
		
			
			| 196 | 206 |  if [ ! $app_webui ]; then
 | 
	
		
			
			| 197 | 207 |      if [ ! "$app_dir" ]; then
 | 
	
		
			
			| 198 | 208 |          app_dir=/etc/${app_name}
 | 
	
	
		
			
			|  | @@ -600,6 +610,9 @@ fi
 | 
	
		
			
			| 600 | 610 |  if [[ "$app_node" == 'yes' ]]; then
 | 
	
		
			
			| 601 | 611 |      echo "install_nodejs ${app_name}"
 | 
	
		
			
			| 602 | 612 |  fi
 | 
	
		
			
			|  | 613 | +if [ "$app_nodeapp" ]; then
 | 
	
		
			
			|  | 614 | +    echo "npm install -g ${app_nodeapp}"
 | 
	
		
			
			|  | 615 | +fi
 | 
	
		
			
			| 603 | 616 |  if [[ "$app_php" == 'yes' ]]; then
 | 
	
		
			
			| 604 | 617 |      echo '    apt-get -yq install php-gettext php-curl php-gd php-mysql git curl'
 | 
	
		
			
			| 605 | 618 |      echo '    apt-get -yq install memcached php-memcached php-intl exiftool libfcgi0ldbl'
 |