This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Photobooth database setup
|
||||
After=network-online.target mysql.service
|
||||
Wants=network-online.target
|
||||
ConditionPathExists=!/var/lib/photobooth/db-setup.done
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/photobooth-db.env
|
||||
ExecStart=/usr/local/bin/photobooth-db-setup
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user