diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 19:07:58 +0000 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-23 19:07:58 +0000 |
| commit | bfc193d85586abeed3e8be2803a379f31ece1127 (patch) | |
| tree | 0c48a55197aa6de72cb8d8d9ecc48845698aa8f2 | |
| parent | 1af09fca9913903e6b7eb1dcfdea173edf54249a (diff) | |
| download | illumos-packaging-bfc193d85586abeed3e8be2803a379f31ece1127.tar.gz | |
ipadm (2.10-2) unstable; urgency=low
* Create /etc/ipadm in postinst
* Make sure /etc/ipadm has proper owner (netadm:netadm)
and permissions in postinst
| -rw-r--r-- | ipadm/debian/changelog | 8 | ||||
| -rw-r--r-- | ipadm/debian/ipadm.dirs | 1 | ||||
| -rw-r--r-- | ipadm/debian/ipadm.postinst | 25 |
3 files changed, 33 insertions, 1 deletions
diff --git a/ipadm/debian/changelog b/ipadm/debian/changelog index 2c65810..a24ab51 100644 --- a/ipadm/debian/changelog +++ b/ipadm/debian/changelog @@ -1,3 +1,11 @@ +ipadm (2.10-2) unstable; urgency=low + + * Create /etc/ipadm in postinst + * Make sure /etc/ipadm has proper owner (netadm:netadm) + and permissions in postinst + + -- Igor Pashev <pashev.igor@gmail.com> Sat, 23 Mar 2013 18:59:15 +0000 + ipadm (2.10-1) unstable; urgency=low * Initial release diff --git a/ipadm/debian/ipadm.dirs b/ipadm/debian/ipadm.dirs deleted file mode 100644 index fff5070..0000000 --- a/ipadm/debian/ipadm.dirs +++ /dev/null @@ -1 +0,0 @@ -etc/ipadm diff --git a/ipadm/debian/ipadm.postinst b/ipadm/debian/ipadm.postinst new file mode 100644 index 0000000..ebdf38f --- /dev/null +++ b/ipadm/debian/ipadm.postinst @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +configure() { + if [ ! -e /etc/ipadm ]; then + mkdir /etc/ipadm + fi + + # netadm user and group are system ones, + # defined in base-passwd. It is specific to illumos. + chown -R netadm:netadm /etc/ipadm + chmod 0755 /etc/ipadm + + if ls /etc/ipadm/* >/dev/null 2>&1; then + chmod 0644 /etc/ipadm/* + fi +} + +if [ "$1" = configure ]; then + configure +fi + +exit 0 + |
