Kimsemi yazmiyor bash kodunu? O halde bir örnek daha verelim. Ne yapalim? ircservices için ircservices.conf hazirliyalim
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir. Kod: Kodu kopyalamak için üzerine çift tıklayın!
#!/bin/sh
#ircservices.conf
FILE="ircservices.conf"
mename="deneme.net"
nick="BehroozWolf"
ip="127.0.0.1"
echo ""
echo "Services isminiz?(sadece deneme.org gibi. services.deneme.org yazmayin)"
echo $n "[$mename] -> $c"
read cc
if [ ! -z $cc ]; then
mename="$cc"
fi
echo ""
echo "Services sifreniz?"
echo $n "[$pass] -> $c"
read cc
if [ ! -z $cc ]; then
pass="$cc"
fi
echo ""
echo "Sunucu ip adresiniz?"
echo $n "[$ip] -> $c"
read cc
if [ ! -z $cc ]; then
ip="$cc"
fi
echo ""
echo "Guest nickler ne olsun?"
echo $n "[$guest] -> $c"
read cc
if [ ! -z $cc ]; then
guest="$cc"
fi
cat > $FILE << __EOF__
# örnek conf dosyasi #
RemoteServer $ip 6667 "$pass"
ServerName "services.$mename"
ServerDesc "- IRC Servisleri"
ServiceUser "services@$mename"
Umask 077
LogFilename ircservices.log
PIDFilename ircservices.pid
MOTDFilename ircservices.motd
LockFilename .lock
StrictPasswords
BadPassLimit 5
BadPassTimeout 1h
BadPassWarning 3
UpdateTimeout 5m
WarningTimeout 4h
ReadTimeout 3
TimeoutCheck 1.0
#PingFrequency 30s
#MergeChannelModes 0.5
NetBufferSize 4194304 1048576 # 4MB and 1MB
NetBufferLimit 80 95
GuestNickPrefix "$guest"
#DefTimeZone PST8PDT
LogMaxUsers
EnableGetpass
WallGetpass
WallSetpass
LoadModule protocol/unreal
#LoadModule encryption/md5
LoadModule database/version4
LoadModule mail/main
LoadModule mail/smtp
LoadModule mail/sendmail
LoadModule operserv/main
LoadModule operserv/akill
LoadModule operserv/news
LoadModule operserv/sessions
LoadModule operserv/sline
LoadModule nickserv/main
LoadModule nickserv/access
LoadModule nickserv/autojoin
LoadModule nickserv/link
#LoadModule nickserv/mail-auth
#LoadModule nickserv/oldlink
#LoadModule nickserv/sendpass
LoadModule chanserv/main
#LoadModule chanserv/access-levels
LoadModule chanserv/access-xop
#LoadModule chanserv/sendpass
LoadModule memoserv/main
#LoadModule memoserv/forward
LoadModule memoserv/ignore
LoadModule statserv/main
LoadModule misc/helpserv
#LoadModule misc/devnull
#LoadModule httpd/main
#LoadModule httpd/auth-ip
#LoadModule httpd/auth-password
#LoadModule httpd/dbaccess
#LoadModule httpd/debug
#LoadModule httpd/redirect
#LoadModule httpd/top-page
LoadModule misc/xml-export
LoadModule misc/xml-import