Improve cloud-init (append & env var)
This commit is contained in:
		@@ -159,6 +159,7 @@ packages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
write_files:
 | 
					write_files:
 | 
				
			||||||
  - path: /etc/environment
 | 
					  - path: /etc/environment
 | 
				
			||||||
 | 
					    append: true
 | 
				
			||||||
    content: |
 | 
					    content: |
 | 
				
			||||||
      DEBUG=1
 | 
					      DEBUG=1
 | 
				
			||||||
      CACHE=diskcache
 | 
					      CACHE=diskcache
 | 
				
			||||||
@@ -170,6 +171,7 @@ write_files:
 | 
				
			|||||||
      gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - --daemon morss
 | 
					      gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - --daemon morss
 | 
				
			||||||
 | 
					
 | 
				
			||||||
runcmd:
 | 
					runcmd:
 | 
				
			||||||
 | 
					  - source /etc/environment
 | 
				
			||||||
  - update-ca-certificates
 | 
					  - update-ca-certificates
 | 
				
			||||||
  - iptables -I INPUT 6 -m state --state NEW -p tcp --dport ${PORT:-8000} -j ACCEPT
 | 
					  - iptables -I INPUT 6 -m state --state NEW -p tcp --dport ${PORT:-8000} -j ACCEPT
 | 
				
			||||||
  - netfilter-persistent save
 | 
					  - netfilter-persistent save
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user