summaryrefslogtreecommitdiff
path: root/pinyconfigs/debian/pinyconfigs.preinst
blob: e09313af68f8032210b8be786f225e342278925b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

case "$1" in

  install)

    dpkg-divert --divert /etc/apache2/envvars.default --package pinyconfigs --rename /etc/apache2/envvars
    dpkg-divert --divert /etc/cgitrc.default --package pinyconfigs --rename /etc/cgitrc
    dpkg-divert --divert /etc/sv/git-daemon/run.default --package pinyconfigs --rename /etc/sv/git-daemon/run

    ;;

  *)
    ;;

esac