Add postinst script for permissions and add config files
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
This commit is contained in:
parent
e7c1c1f2a9
commit
764374927f
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
# postinst script for #PACKAGE#
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
chown -R jenkins:jenkins /etc/zuul
|
||||
chown -R jenkins:jenkins /var/lib/zuul
|
||||
chown -R jenkins:adm /var/log/zuul
|
||||
|
||||
chmod 0640 /etc/zuul/layout.yaml
|
||||
chmod 0640 /etc/zuul/logging.conf
|
||||
chmod 0640 /etc/zuul/zuul.conf
|
||||
|
||||
chmod 0750 /etc/zuul
|
||||
chmod 0750 /var/lib/zuul
|
||||
chmod 0750 /var/log/zuul
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -13,6 +13,12 @@ override_dh_auto_build:
|
|||
override_dh_auto_test:
|
||||
nosetests
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
install -D -m 0644 $(CURDIR)/etc/layout.yaml-sample $(CURDIR)/debian/etc/zuul/layout.yaml
|
||||
install -D -m 0644 $(CURDIR)/etc/logging.conf-sample $(CURDIR)/debian/etc/zuul/logging.conf
|
||||
install -D -m 0644 $(CURDIR)/etc/zuul.conf-sample $(CURDIR)/debian/etc/zuul/zuul.conf
|
||||
|
||||
get-orig-source:
|
||||
@@[ -d ../tarballs/. ] || mkdir -p ../tarballs
|
||||
uscan --verbose --force-download --rename --destdir=../tarballs
|
||||
|
|
Loading…
Reference in New Issue