CONFIGDIR
[scripts/scripts.git] / unreal_update.sh
index 9b8527a..5c536f2 100755 (executable)
@@ -3,7 +3,7 @@
 # to update ip of hackdaworld.dyndns.org in unrealircd.conf
 
 CONFIGDIR="/etc/opt/unrealircd"
-BINDIR="/opt/unrealircd"
+BINDIR="/opt/unrealircd/bin"
 BINARY="ircd"
 
 
@@ -12,6 +12,6 @@ NEWIP="`host hackdaworld.dyndns.org | awk '{ print $4 }'`"
 # HDWTAG dirty ... but easy :)
 cat $CONFIGDIR/unrealircd.conf | \
  sed "s/.* HDWTAG .*/hostname $NEWIP \/* HDWTAG *\//" > $CONFDIR/temp
-mv $CONFDIR/temp $CONFIGDIR/unrealircd.conf
-$BINDIR/$BINARY -rehash
+mv $CONFIGDIR/temp $CONFIGDIR/unrealircd.conf
+$BINDIR/$BINARY rehash