Codebase list python-faraday / debian/3.5.0-0kali2
Improve database migration in postinst Sophie Brun 5 years ago
2 changed file(s) with 12 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 python-faraday (3.5.0-0kali2) kali-dev; urgency=medium
1
2 * Improve database migration in postinst when systemd is not used
3
4 -- Sophie Brun <[email protected]> Tue, 05 Feb 2019 09:35:55 +0100
5
06 python-faraday (3.5.0-0kali1) kali-dev; urgency=medium
17
28 * New upstream version 3.5.0
00 #!/bin/sh
1
2 set -e
13
24 migrate() {
35 if su postgres -c "psql -lqt" | cut -d \| -f 1 | grep -qw faraday; then
911 if [ "$(systemctl is-active postgresql)" = "active" ]; then
1012 migrate
1113 else
12 systemctl start postgresql
13 migrate
14 systemctl stop postgresql
14 if systemctl start postgresql; then
15 migrate
16 systemctl stop postgresql
17 fi
1518 fi