X-Git-Url: https://hackdaworld.org/gitweb/?p=scripts%2Fscripts.git;a=blobdiff_plain;f=unreal_update.sh;h=e2246a372d99f0ae1a4e8f6c19456d2e9c233fd1;hp=9b8527ab4330193258e82214bfbc407e553a3f14;hb=b8cbc8dc07a49719f01881f64ec8b4a5fb11f66c;hpb=e53d651e2f59580fd0c3c658717d8de65ebc3ca9 diff --git a/unreal_update.sh b/unreal_update.sh index 9b8527a..e2246a3 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" @@ -13,5 +13,5 @@ NEWIP="`host hackdaworld.dyndns.org | awk '{ print $4 }'`" cat $CONFIGDIR/unrealircd.conf | \ sed "s/.* HDWTAG .*/hostname $NEWIP \/* HDWTAG *\//" > $CONFDIR/temp mv $CONFDIR/temp $CONFIGDIR/unrealircd.conf -$BINDIR/$BINARY -rehash +$BINDIR/$BINARY rehash