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
Make the apt repo directory structure exist if it doesn't already.
[invirt/packages/invirt-dev.git]
/
debian
/
invirt-dev.init
diff --git
a/debian/invirt-dev.init
b/debian/invirt-dev.init
index
5957157
..
4888008
100755
(executable)
--- a/
debian/invirt-dev.init
+++ b/
debian/invirt-dev.init
@@
-26,18
+26,41
@@
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
+ for d in db dists lists pool; do
+ dir="/srv/repository/$d"
+ if ! [ -e "$dir" ]; then
+ mkdir -p "$dir"
+ fi
+ chown -R repository:nogroup "$dir"
+ done
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 \
+ --syslog \
+ --verbose \
+ --reuseaddr \
+ --export-all \
+ --base-path=/srv/git \
+ /srv/git || ret=$?
+
return $ret
}
do_stop()
{
return $ret
}
do_stop()
{
+ daemon -n invirt-dev-git-daemon --stop
+ return $?
}
do_reload()
{
do_start
}
}
do_reload()
{
do_start
}
+
+std_init "$@"