build files for making podman containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
355 B

[Unit]
Description=Load/Dump database on start/stop
After=postgresql.service
Requires=postgresql.service
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/environment
ExecStart=/usr/local/bin/db-load /vol/data/sql/nextcloud-updown.sql
ExecStop=/usr/local/bin/db-dump /vol/data/sql/nextcloud-updown.sql
[Install]
WantedBy=multi-user.target