debian/apt-dater.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [ "$1" = configure ]; then |
| 6 | getent group apt-dater >/dev/null 2>&1 || addgroup --system apt-dater |
| 7 | |
| 8 | chown :apt-dater /etc/apt-dater /etc/apt-dater/ssh |
| 9 | chmod 0750 /etc/apt-dater |
| 10 | chmod 0710 /etc/apt-dater/ssh |
| 11 | |
| 12 | for d in /var/cache/apt-dater/stats /var/cache/apt-dater/tmux /var/lib/apt-dater/history; do |
| 13 | chown :apt-dater "$d" |
| 14 | chmod 02770 "$d" |
| 15 | done |
| 16 | fi |
| 17 | |
| 18 | #DEBHELPER# |