Merge branch 'pgdata-path' of https://github.com/xcompass/mattermost-docker
* 'pgdata-path' of https://github.com/xcompass/mattermost-docker: Use $PGDATA env var to setup wal-e
This commit is contained in:
		
						commit
						c89c541c9a
					
				| @ -1,10 +1,10 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| # wal-e specific | ||||
| echo "wal_level = archive" >> /var/lib/postgresql/data/postgresql.conf | ||||
| echo "archive_mode = on" >> /var/lib/postgresql/data/postgresql.conf | ||||
| echo "archive_command = 'envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push %p'" >> /var/lib/postgresql/data/postgresql.conf | ||||
| echo "archive_timeout = 60" >> /var/lib/postgresql/data/postgresql.conf | ||||
| echo "wal_level = $WAL_LEVEL" >> $PGDATA/postgresql.conf | ||||
| echo "archive_mode = $ARCHIVE_MODE" >> $PGDATA/postgresql.conf | ||||
| echo "archive_command = 'envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push %p'" >> $PGDATA/postgresql.conf | ||||
| echo "archive_timeout = 60" >> $PGDATA/postgresql.conf | ||||
| 
 | ||||
| # no cron in the image, use systemd timer on host instead | ||||
| #su - postgres -c "crontab -l | { cat; echo \"0 3 * * * /usr/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-push /var/lib/postgresql/data\"; } | crontab -" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Yi EungJun
						Yi EungJun