X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=unreal_update.sh;h=54573532ba9b7e36f6138bcaaa43621cbf88f238;hb=b46077f8873d4f324aff6b060b3ba1a12a1ba84a;hp=9b8527ab4330193258e82214bfbc407e553a3f14;hpb=e53d651e2f59580fd0c3c658717d8de65ebc3ca9;p=scripts%2Fscripts.git diff --git a/unreal_update.sh b/unreal_update.sh index 9b8527a..5457353 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" @@ -11,7 +11,7 @@ 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 + sed "s/.* HDWTAG .*/hostname ::ffff:$NEWIP \/* HDWTAG *\//" > $CONFIGDIR/temp +mv $CONFIGDIR/temp $CONFIGDIR/unrealircd.conf +$BINDIR/$BINARY rehash