~linuxgoose/bocpress

ref: c3e7a8fd7f81de9f46f6e20a224922de9469f78b bocpress/ansible/mataroa-backup.service.j2 -rw-r--r-- 238 bytes
c3e7a8fdJordan Robinson update allow for docs user if env variable 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Backup mataroa database

[Service]
Type=oneshot
User=deploy
WorkingDirectory=/home/deploy
Environment="PGPASSWORD={{ postgres_password }}"
ExecStart=/home/deploy/backup-database.sh

[Install]
WantedBy=multi-user.target