X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=unreal_update.sh;h=5c536f28b76a77773dfd2d363a2aa80d57ac4a2e;hb=5d58c53b68e588aef8672d156052195db39c903b;hp=9b8527ab4330193258e82214bfbc407e553a3f14;hpb=e53d651e2f59580fd0c3c658717d8de65ebc3ca9;p=scripts%2Fscripts.git diff --git a/unreal_update.sh b/unreal_update.sh index 9b8527a..5c536f2 100755 --- a/unreal_update.sh +++ b/unreal_update.sh @@ -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