projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The apt repository needs to be owned by the repository user, so let's
[invirt/packages/invirt-dev.git]
/
debian
/
invirt-dev.init
diff --git
a/debian/invirt-dev.init
b/debian/invirt-dev.init
index
1af115e
..
5f85efe
100755
(executable)
--- a/
debian/invirt-dev.init
+++ b/
debian/invirt-dev.init
@@
-26,9
+26,16
@@
do_start()
# 1 if daemon was already running
# 2 if daemon could not be started
ret=0
# 1 if daemon was already running
# 2 if daemon could not be started
ret=0
+
gen_files || ret=2
gen_files || ret=2
+ chown -R repository:nogroup /srv/repository/db \
+ /srv/repository/dists \
+ /srv/repository/lists \
+ /srv/repository/pool
reprepro-env export || ret=2
reprepro-env export || ret=2
+
invirt-build-conf || ret=2
invirt-build-conf || ret=2
+
daemon -n invirt-dev-git-daemon -- git daemon \
--user=git \
--group=nogroup \
daemon -n invirt-dev-git-daemon -- git daemon \
--user=git \
--group=nogroup \
@@
-52,3
+59,5
@@
do_reload()
{
do_start
}
{
do_start
}
+
+std_init "$@"