projects
/
invirt/packages/invirt-database.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use invoke-rc.d instead of calling init scripts directly in
[invirt/packages/invirt-database.git]
/
debian
/
invirt-database-server.postinst
diff --git
a/debian/invirt-database-server.postinst
b/debian/invirt-database-server.postinst
index
f6615e5
..
79fe70c
100644
(file)
--- a/
debian/invirt-database-server.postinst
+++ b/
debian/invirt-database-server.postinst
@@
-35,7
+35,7
@@
case "$1" in
su postgres -c 'createdb invirt -O invirt' || true
adduser --system invirt
fi
- /etc/init.d/postgresql-8.3 restart
+ invoke-rc.d postgresql-8.3 restart
su invirt -s /bin/sh -c 'invirt-database-tables create'
;;