#!/bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/owncloud-pre-view-configlog - view configuration log file # # Copyright (c) 2013-2021 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2014-01-17 jed # Last Update: $Id$ # # 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. #---------------------------------------------------------------------------------- # read eislib etc. . /var/install/include/eislib pgmname=`basename $0` module_name="`echo "${pgmname}" | cut -d- -f1 | cut -d. -f1`" # set platform specific parameters owncloud_path=/var/${module_name} owncloudfile=/etc/config.d/${module_name} logdir=/var/log . ${owncloudfile} if [ -n "${OWNCLOUD_DATA_DIR}" ] then owncloud_path="`echo "${OWNCLOUD_DATA_DIR}" | sed 's#[/ ]*$##'`" fi owncloud_logpath=${owncloud_path}/ # create symbolic link ln -sf ${owncloud_path}/${module_name}-configlog ${logdir}/${module_name}-configlog exit 0