#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/sn-export-variables - export some configuration variables for user news # # Creation : 2001 chriswue # Last update: $Id$ # # Copyright (c) 2001-2003 by Christian Wuerdig eisfair(at)chriswue(dot)de # Copyright (c) 2010-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # 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. #---------------------------------------------------------------------------- . /etc/config.d/sn . /var/lib/sn/sn.info mkdir -p /run/sn cd /run/sn rm -f * if [ "$SN_USER_N" -gt 0 ] then touch sn_auth chown news:news sn_auth chmod 644 sn_auth fi if [ "$SN_DO_DEBUG" = "yes" ] then touch sn_do_debug chown news:news sn_do_debug chmod 644 sn_do_debug fi exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------