IRC Server: Fixing startup and quoting some vars
If the python IRC server is running as a daemon, it is needed, that the setuid command is used.
This commit is contained in:
parent
6b99000a2b
commit
cde91a86be
|
@ -2,6 +2,7 @@ CHANGELOG
|
|||
|
||||
=== 1.1.1 ===
|
||||
* [Fix] Translation en,fr LibraryBox -> PirateBox
|
||||
* [Fix] IRC startup command failed.
|
||||
* [Removed] exchange_www.sh
|
||||
|
||||
=== 1.1.0 ===
|
||||
|
|
|
@ -186,6 +186,12 @@ LIGHTTPD_GROUP=nogroup
|
|||
|
||||
#Switch to yes if you want to enable the IRC-Server
|
||||
ENABLE_IRC_SERVER="no"
|
||||
IRC_USER="$LIGHTTPD_USER"
|
||||
|
||||
## If you want to save rooms and so on, create the folder
|
||||
# /opt/piratebox/share/IRC_STATE and make sure it is writeable
|
||||
# for IRC_USER (nobody per default)
|
||||
#IRC_STATE_DIR="$SHARE_FOLDER/IRC_STATE"
|
||||
|
||||
#------------------------ Hook in user-config
|
||||
. $PIRATEBOX_FOLDER/conf/hook_custom.conf
|
||||
|
|
|
@ -200,10 +200,10 @@ case "$1" in
|
|||
|
||||
. $CONF_IRC
|
||||
|
||||
IRC_PARMS="--daemon --motd $IRC_MOTD "
|
||||
IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' "
|
||||
|
||||
if [ ! -z $STATEDIR ] ; then
|
||||
IRC_PARMS=" $IRCPARMS --statedir $STATEDIR "
|
||||
if [ ! -z "$IRC_STATEDIR" ] ; then
|
||||
IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' "
|
||||
fi
|
||||
|
||||
log_daemon_msg "Starting Miniircd..."
|
||||
|
|
|
@ -192,10 +192,10 @@ case "$1" in
|
|||
#Start IRC Server
|
||||
if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then
|
||||
. $CONF_IRC
|
||||
IRC_PARMS="--daemon --motd $IRC_MOTD "
|
||||
IRC_PARMS="--setuid $IRC_USER --daemon --motd '$IRC_MOTD' "
|
||||
|
||||
if [ ! -z $STATEDIR ] ; then
|
||||
IRC_PARMS=" $IRCPARMS --statedir $STATEDIR "
|
||||
if [ ! -z "$IRC_STATEDIR" ] ; then
|
||||
IRC_PARMS=" $IRCPARMS --statedir '$IRC_STATEDIR' "
|
||||
fi
|
||||
echo "Starting Miniircd..."
|
||||
start-stop-daemon $DROOPY_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
|
||||
|
|
Loading…
Reference in New Issue