Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_amanda@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit fa4edac95a
5 changed files with 81 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

15
tmp/postremove Normal file
View File

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