summaryrefslogtreecommitdiffstats
path: root/etc/init.d/jenkins-workspace
blob: 128d828c757030ca2fe03e236e1f8968be76761d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
### BEGIN INIT INFO
# Provides:		jenkins-workspace
# Required-Start:	$remote_fs
# Required-Stop:	$remote_fs
# Default-Start:	2 3 4 5
# Default-Stop:
# X-Start-Before:	jenkins
# Short-Description:	Create jenkins workspace directory structure
### END INIT INFO

WORKSPACE=/srv/workspace

case "$1" in
	start)
		echo "Creating jenkins workspace"
		mkdir "$WORKSPACE/chroots"
		chown jenkins:jenkins "$WORKSPACE/chroots"
		mkdir "$WORKSPACE/pbuilder"
		echo done
	;;
esac