diff options
author | Phillip Smith | 2015-06-09 09:37:58 +1000 |
---|---|---|
committer | Phillip Smith | 2015-06-09 09:38:42 +1000 |
commit | 39c545d80062de25663edfef61f0c1c684349f6b (patch) | |
tree | 325adde4547191352e9f021fd933f33c72544c43 /amanda.install | |
download | aur-39c545d80062de25663edfef61f0c1c684349f6b.tar.gz |
initial commit
Diffstat (limited to 'amanda.install')
-rw-r--r-- | amanda.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/amanda.install b/amanda.install new file mode 100644 index 000000000000..001fce831a50 --- /dev/null +++ b/amanda.install @@ -0,0 +1,29 @@ +post_install() { + if [ -z "`getent group amanda`" ]; then + groupadd -g 112 amanda + fi + if [ -z "`getent passwd amanda`" ]; then + useradd -u 112 -g amanda -G storage,disk -m -d /var/amanda -s /bin/bash -c "Amanda Backup Daemon" amanda + fi + cat << EOT +amanda: Visit the Amanda wiki to configure your backup sets: +amanda: http://wiki.zmanda.com/index.php/Getting_Started_With_Amanda +amanda: Examples are in /etc/amanda/examples/ + +amanda: Restart xinetd to start the daemon listening for connections. +EOT +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel amanda &> /dev/null + groupdel amanda &> /dev/null +} + +op=$1 +shift + +$op $* |