#!/bin/sh
# postinst script for smart_proxy_ansible
#
# see: dh_installdeb(1)

set -e

USERNAME="foreman-proxy"
GROUPNAME="foreman-proxy"
ANSIBLE_LIB_DIR="/var/lib/foreman-proxy/ansible"

case "$1" in
  configure)
    mkdir -p "$ANSIBLE_LIB_DIR"
    chown $USERNAME:$GROUPNAME "$ANSIBLE_LIB_DIR"
    chmod 750 "$ANSIBLE_LIB_DIR"
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;

  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 0
  ;;
esac


# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
