commit fa4edac95a5f4639068cb546dc7619b52e1ad416 Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_amanda@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/xinetd.d/amanda b/etc/xinetd.d/amanda new file mode 100644 index 0000000..fdbf0da --- /dev/null +++ b/etc/xinetd.d/amanda @@ -0,0 +1,13 @@ +# amanda client + +service amanda +{ + disable = yes + socket_type = dgram + protocol = udp + wait = yes + user = amanda + group = backup + groups = yes + server = /usr/libexec/amandad +} diff --git a/etc/xinetd.d/amandaidx b/etc/xinetd.d/amandaidx new file mode 100644 index 0000000..3fc3df5 --- /dev/null +++ b/etc/xinetd.d/amandaidx @@ -0,0 +1,13 @@ +# amanda aerver + +service amandaidx +{ + disable = yes + socket_type = stream + protocol = tcp + wait = no + user = amanda + group = backup + groups = yes + server = /usr/libexec/amindexd +} diff --git a/etc/xinetd.d/amidxtape b/etc/xinetd.d/amidxtape new file mode 100644 index 0000000..1a4e3cd --- /dev/null +++ b/etc/xinetd.d/amidxtape @@ -0,0 +1,13 @@ +# amanda server + +service amidxtape +{ + disable = yes + socket_type = stream + protocol = tcp + wait = no + user = amanda + group = backup + groups = yes + server = /usr/libexec/amidxtaped +} diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..9533a20 --- /dev/null +++ b/tmp/postinstall @@ -0,0 +1,27 @@ +#!/bin/bash + +if ! getent group backup 2>&1 >/dev/null; then + groupadd -g 25 backup +fi +if ! getent passwd amanda 2>&1 >/dev/null; then + useradd -u 46 -g backup -s /bin/false -m -d /var/amanda amanda +fi + +cat >>/etc/services </tmp/crontab.$$ 2>/dev/null +cat >>/tmp/crontab.$$ </dev/null +rm /tmp/crontab.$$ + +touch /etc/amandates +chown amanda:backup /etc/amandates + +mkdir -p /var/amanda/gnutar-lists +chown -R amanda:backup /var/amanda diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..2561526 --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,15 @@ +#!/bin/bash + +if getent passwd amanda 2>&1 >/dev/null; then + userdel amanda +fi +if getent group backup 2>&1 >/dev/null; then + groupdel backup +fi + +sed -i -e "/^amandaidx/d" /etc/services +sed -i -e "/^amidxtape/d" /etc/services + +crontab -r -u amanda + +rm -r /etc/amandates /var/amanda