#!/bin/sh
# ----------------------------------------------------------------------
# /tmp/install.sh -- rsnapshot installation
#
# Creation   : 2009-10-25 alex
# Last update: $Id$
#
# Copyright (c) 2009 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# ----------------------------------------------------------------------

# set package name
_PACKAGE_NAME='rsnapshot'

# includes
. /var/install/include/eislib
. /etc/default/${_PACKAGE_NAME}

# ----------------------------------------------------------------------
# First setup steps
# ----------------------------------------------------------------------
mkdir -p `dirname ${RSNAPSHOT_LOGFILE}`
touch ${RSNAPSHOT_LOGFILE}

# ----------------------------------------------------------------------
# Add menu
# ----------------------------------------------------------------------
/var/install/bin/add-menu setup.services.menu setup.services.${_PACKAGE_NAME}.menu "${_PACKAGE_NAME}"

# ----------------------------------------------------------------------
# Create default config or update current config
# ----------------------------------------------------------------------
/var/install/config.d/${_PACKAGE_NAME}-update.sh

exit 0
# ----------------------------------------------------------------------
# End
# ----------------------------------------------------------------------
