#! /bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/mail2print-pre-view-log - view log file # # Copyright (c) 2011-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2012-06-02 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. #---------------------------------------------------------------------------------- module_name='mail2print' log_dir=/var/log log_file=${log_dir}/${module_name}.log # create log file if it doesn't exist if [ ! -f ${log_file} ] then touch ${log_file} fi chown exim ${log_file} chgrp trusted ${log_file}