Commit a9c47fee authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

borg-client: use is-active for checking service state

Also add mariadb support
parent 66fe99e0
......@@ -26,10 +26,10 @@ if is_btrfs "$src"; then
# In case there is postgresql running, dump all of it somewhere.
systemctl status postgresql && /usr/local/bin/ || true
systemctl status mysqld && /usr/local/bin/ || true
systemctl is-active postgresql && /usr/local/bin/ || true
if systemctl is-active mysqld || systemctl is-active mariadb; then
/usr/local/bin/ || true
borg create -v --stats -C lz4 \
-e /proc \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment