V961 Tree Umbau

git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_amanda@4229 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2008-05-03 16:58:43 +00:00
commit 9f4356e6de
4 changed files with 66 additions and 0 deletions

13
etc/xinetd.d/amanda Normal file
View File

@ -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
}

13
etc/xinetd.d/amandaidx Normal file
View File

@ -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
}

13
etc/xinetd.d/amidxtape Normal file
View File

@ -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
}

27
tmp/postinstall Normal file
View File

@ -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 <<EOF
amandaidx 10082/tcp
amidxtape 10083/tcp
EOF
crontab -l -u amanda >/tmp/crontab.$$ 2>/dev/null
cat >>/tmp/crontab.$$ <<EOF
#0 16 * * 1-5 /usr/sbin/amcheck -m confname
#45 0 * * 2-6 /usr/sbin/amdump confname
EOF
crontab /tmp/crontab.$$ -u amanda 2>/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