sleepyhu

FreeBSD 9.0 Lazy Install script v1.0

Dec 21st, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.26 KB | None | 0 0
  1. #!/usr/local/bin/bash
  2. #########################################################
  3. ### FreeBSD Lazy Install script v1.0 by www.sleepy.hu ###
  4. #########################################################
  5.  
  6. ### Updated: 2012.11.06. ###
  7.  
  8. SLEEPYHU="http://ftp.sleepy.hu/freebsd"
  9.  
  10. function install {
  11. #MENU
  12. select MENU in "Alapveto programok telepitese" "Xorg + XFCE4 telepitese" "Hasznos programok (GUI)" "TeamViewer telepitese" "Tuzfal" "SAMBA PDC telepitese" "Squid telepitese" "LAMP telepitese" "ISC-DHCP szerver telepitese" "Postfix telepitese" "Raid1 howto" "Raid1 lemezcsere" "Kilepes"; do
  13.  
  14. #Kilepes
  15. if [ "$MENU" = "Kilepes" ]; then
  16. echo "###########################################"
  17. echo "############# www.sleepy.hu ###############"
  18. echo "###########################################"
  19. exit
  20. #end Kilepes    
  21.  
  22. # Raid1 lemezcsere
  23. elif [ "$MENU" = "Raid1 lemezcsere" ]; then
  24. gpart create -s gpt ada1
  25. gpart add -s 64k -t freebsd-boot -l boot1 ada1
  26. gpart add -s 1G -t freebsd-swap -l swap1 ada1
  27. gpart add -t freebsd-ufs -l root1 ada1
  28. gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1
  29. echo "----------------- HELP --------------------"
  30. echo "gmirror forget [boot|root|swap]"
  31. echo "gmirror insert [boot|root|swap] /dev/ada1pX"
  32. echo "gmirror status"
  33. echo "-------------------------------------------"
  34. exit
  35. # end Raid1 lemezcsere
  36.  
  37. # Alapveto programok telepitese
  38. elif [ "$MENU" = "Alapveto programok telepitese" ]; then
  39. pkg_add -r mc wget rsync bash cups cups-pdf vlock sudo rdiff-backup
  40. mcedit /etc/rc.conf
  41. echo "
  42. #//[email protected]/storage  /mnt/storage     smbfs  rw,-I10.0.0.1 0   0
  43. " >> /etc/fstab
  44. mcedit /etc/fstab
  45. mcedit /etc/nsmb.conf
  46. echo "Magyaritas..."
  47. echo "
  48. hungarian|Hungarian Users Accounts:\
  49. :charset=iso-8859-2:\
  50. :lang=hu_HU.ISO8859-2:\
  51. :tc=default:">> /etc/login.conf
  52. echo "
  53. font8x14=\"iso02-8x14\"
  54. font8x16=\"iso02-8x16\"
  55. font8x8=\"iso02-8x8\"
  56. snd_hda_load=\"YES\"
  57. update_motd=\"NO\"">> /etc/rc.conf
  58. kldload snd_driver
  59. cap_mkdb /etc/login.conf
  60. export EDITOR=mcedit
  61. echo "------------------- HELP -----------------------"
  62. echo "felhasznalonev:jelszo:1001:1001:hungarian:0:0:--"
  63. echo "------------------------------------------------"
  64. echo "Nyomj egy gombot..."
  65. read
  66. vipw
  67. # end Alapveto programok telepitese
  68.  
  69. # Xorg + XFCE4 telepitese
  70. elif [ "$MENU" = "Xorg + XFCE4 telepitese" ]; then
  71. pkg_add -r xorg xfce4 xfce4-xkb-plugin hald dbus
  72. kldload hald
  73. kldload dbus
  74. echo "
  75. hald_enable=\"YES\"
  76. dbus_enable=\"YES\"" >>/etc/rc.conf
  77. wget $SLEEPYHU/config/xfce4-config.tar.gz
  78. tar xzf xfce4-config.tar.gz
  79. rm ~/xfce4-config.tar.gz
  80. Xorg -configure
  81. X -config xorg.conf.new -retro
  82. cp xorg.conf.new /etc/X11/xorg.conf
  83. # end Xorg + XFCE4
  84.  
  85. # Hasznos programok (GUI)
  86. elif [ "$MENU" = "Hasznos programok (GUI)" ]; then
  87. pkg_add -r vlc pidgin firefox gthumb gimp lazarus audacity brasero gprename imagination gnome-terminal transmission
  88. kldload linux
  89. echo "linux_enable=\"YES\"">> /etc/rc.conf
  90. cd /usr/ports/net-im/skype
  91. make install
  92.  
  93. cd /usr/ports/editors/gedit
  94. make install
  95.  
  96. cd /usr/ports/distfiles
  97. wget $SLEEPYHU/src/bsd-jdk16-patches-4.tar.bz2
  98. wget  http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
  99. wget  http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
  100. wget http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
  101. wget $SLEEPYHU/src/diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2
  102. cd /usr/ports/editors/openoffice.org-3
  103. make LOCALIZED_LANG=hu install clean
  104.  
  105. cd /usr/ports/multimedia/mplayer
  106. make install
  107.  
  108. cd /usr/ports/multimedia/mencoder
  109. make install
  110. # end Hasznos programok (GUI)
  111.  
  112. # TeamViewer telepitese
  113. elif [ "$MENU" = "TeamViewer telepitese" ]; then
  114. pkg_add -r wine
  115. wget http://www.teamviewer.com/download/TeamViewer_Setup_hu.exe
  116. wine TeamViewer_Setup_hu.exe
  117. echo "alias teamviewer='wine ~/.wine/drive_c/Program\ Files/TeamViewer/Version7/TeamViewer.exe'" >> ~/.bash_aliases
  118. source "source .bash_aliases" >> ~/.bashrc
  119. rm TeamViewer_Setup_hu.exe
  120. # end TeamViewer telepitese
  121.  
  122. # SAMBA PDC
  123. elif [ "$MENU" = "SAMBA PDC telepitese" ]; then
  124. pkg_add -r samba35
  125. mkdir -p /usr/local/samba/lib/netlogon
  126. mkdir -p /usr/local/samba/profiles
  127.  
  128. mkdir -p /home/samba/netlogon
  129. mkdir -p /home/samba/profiles
  130. echo "
  131. net time \\server /set /yes
  132. net use u: \\server\home
  133. net use m: \\server\media
  134. " > /home/samba/netlogon/logon.bat
  135. chmod -R 755 /home/*
  136.  
  137. mv /usr/local/etc/smb.conf /usr/local/etc/smb.conf-`date +%s`
  138. echo "
  139. [global]
  140.     workgroup = DOMAIN
  141.     server string = %h (FreeBSD RELEASE 9.0)
  142.     null passwords = Yes
  143.     passwd program = /usr/bin/passwd %u
  144.     passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
  145.     passwd chat debug = Yes
  146.     username map = /usr/local/etc/smbusers
  147.     unix password sync = Yes
  148.     log level = 3
  149.     name resolve order = wins bcast hosts
  150.     printcap name = CUPS
  151.     add user script = /usr/sbin/adduser --quiet --disabled-password --gecos  %u
  152.     delete user script = /usr/sbin/userdel -r %u
  153.     add group script = /usr/sbin/groupadd %g
  154.     delete group script = /usr/sbin/groupdel %g
  155.     add user to group script = /usr/sbin/usernod -G %g %u
  156.     add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
  157.     logon script = %G.bat
  158.     logon drive = u:
  159.     domain logons = Yes
  160.     preferred master = Yes
  161.     wins support = Yes
  162.     idmap uid = 15000-20000
  163.     idmap gid = 15000-20000
  164.     template shell = /usr/local/bin/bash
  165.  
  166. [homes]
  167.     comment = Home
  168.     valid users = %S
  169.     read only = No
  170.     browseable = No
  171.  
  172. [printers]
  173.     comment = All Printers
  174.     path = /var/spool/samba
  175.     create mask = 0700
  176.     printable = Yes
  177.     browseable = No
  178.  
  179. [print$]
  180.     comment = Printer Drivers
  181.     path = /var/lib/samba/printers
  182.     write list = root, @smbadmin
  183.  
  184. [netlogon]
  185.     comment = Network Logon Service
  186.     path = /home/samba/netlogon
  187.     valid users = %U
  188.     admin users = Administrator
  189.     guest ok = Yes
  190.     browseable = No
  191.  
  192. [profile]
  193.     comment = User profiles
  194.     path = /home/samba/profiles
  195.     valid users = %U
  196.     read only = No
  197.     create mask = 0600
  198.     directory mask = 0700
  199.     browseable = No
  200.  
  201. [public]
  202.     comment = Public share
  203.     path = /public
  204.     valid users = %U
  205.     create mask = 0755
  206.     directory mask = 0755
  207.     browseable = Yes
  208.     read only = No
  209.     vfs objects = recycle
  210.  
  211. "> /usr/local/etc/smb.conf
  212.  
  213. echo "smbpasswd -a root"
  214. smbpasswd -a root
  215. echo "root = Administrator" > /usr/local/etc/smbusers
  216. echo '
  217. pw useradd $1$ -g gep
  218. smbpasswd -a -m $1' > /etc/scripts/addmachine.sh
  219. pkg_add -r cups
  220. echo "
  221. samba_enable=\"YES\"
  222. cupsd_enable=\"YES\"">>/etc/rc.conf
  223. # end SAMBA PDC
  224.  
  225. # Firewall
  226. elif [ "$MENU" = "Tuzfal" ]; then
  227. clear
  228. echo "KERNEL ujraforgatasa routing+NAT funkciokohoz..."
  229. #cd /usr/src
  230. #wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz
  231. #tar -C / -xvzf src.txz
  232. #rm src.txz
  233. cd /usr/src/sys/i386/conf
  234. cp GENERIC IPFWKERNEL-SLEEPY
  235. echo "
  236. options IPFIREWALL
  237. options IPFIREWALL_FORWARD
  238. options IPFIREWALL_VERBOSE
  239. options IPFIREWALL_VERBOSE_LIMIT=5
  240. options IPDIVERT" >> IPFWKERNEL-SLEEPY
  241. mcedit IPFWKERNEL-SLEEPY
  242. cd /usr/src
  243. make buildkernel KERNCONF=IPFWKERNEL-SLEEPY
  244. make installkernel KERNCONF=IPFWKERNEL-SLEEPY
  245. echo "
  246. firewall_enable=\"YES\"
  247. firewall_type=\"UNKNOWN\"
  248. firewall_script=\"/etc/scripts/ipfw.rules\"
  249.  
  250. #gateway_enable=\"YES\"
  251. #natd_enable=\"YES\"
  252. #natd_interface=\"ext0\"
  253. #natd_flags=\"\"" >> /etc/rc.conf
  254. wget $SLEEPYHU/config/ipfw.rules -O /etc/scripts/ipfw.rules
  255. # end Firewall
  256.  
  257. # Raid1 howto
  258. elif [ "$MENU" = "Raid1 howto" ]; then
  259. echo "
  260. # Futtasd a FreeBSD telepitot a particionalasig, majd inditst ott egy shell-t.
  261.  
  262. # 1. lemez
  263. gpart create -s gpt \$DISK1
  264. gpart add -s 64k -t freebsd-boot -l boot0 \$DISK1
  265. gpart add -s 1G -t freebsd-swap -l swap0 \$DISK1
  266. gpart add -t freebsd-ufs -l root0 \$DISK1
  267. gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 \$DISK1
  268.  
  269. # 2. lemez
  270. gpart create -s gpt \$DISK2
  271. gpart add -s 64k -t freebsd-boot -l boot1 \$DISK2
  272. gpart add -s 1G -t freebsd-swap -l swap1 \$DISK2
  273. gpart add -t freebsd-ufs -l root1 \$DISK2
  274. gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 \$DISK2
  275.  
  276. true > /dev/\$DISK1
  277. true > /dev/\$DISK2
  278. ls -l /dev/gpt/
  279.  
  280. #Raid kialakitasa
  281. kldload geom_mirror
  282. gmirror label boot /dev/gpt/boot0 /dev/gpt/boot1
  283. gmirror label swap /dev/gpt/swap0 /dev/gpt/swap1
  284. gmirror label root /dev/gpt/root0 /dev/gpt/root1
  285. gmirror status
  286.  
  287. # Raid csatolasa
  288. newfs -U -L root /dev/mirror/root
  289. mount /dev/mirror/root /mnt
  290.  
  291. /tmp/bsdinstall_etc/fstab tartalma:
  292. /dev/mirror/swap  none            swap    sw      0       0
  293. /dev/mirror/root  /               ufs     rw      1       1
  294. Az exit paranccsal lepj ki a shel-bol, folytasd a telepitest.
  295. Telepites vegen:
  296. geom_mirror_load=YES >> /boot/defaults/loader.conf
  297. daily_status_gmirror_enable=\"YES\" >> /etc/defaults/periodic.conf
  298. #########################################################################
  299. Lemezcsere:
  300. gmirror forget root
  301. gmirror insert root /dev/\$DISK11
  302. "> /root/raid1-howto.txt
  303. vi  /root/raid1-howto.txt
  304. # end Raid1 howto
  305.  
  306. # ISC-DHCP szerver telepitese
  307. elif [ "$MENU" = "ISC-DHCP szerver telepitese" ]; then
  308. pkg_add -r isc-dhcp42-server
  309. cd /etc/scrtipts
  310. wget -c $SLEEPYHU/config/freebsd-dhcp.tar.gz
  311. tar xcz freebsd-dhcp.tar.gz
  312. rm freebsd-dhcp.tar.gz
  313. echo "
  314. dhcpd_enable=\"YES\"
  315. dhcpd_ifaces=\"int0\"" >> /etc/rc.conf
  316. # end ISC-DHCP szerver telepitese
  317.  
  318. # Squid telepitese
  319. elif [ "$MENU" = "Squid telepitese" ]; then
  320. pkg_add -r squid
  321. mkdir /usr/local/etc/squid-old/
  322. mv /usr/local/etc/squid/* /usr/local/etc/squid-old/
  323. cd /usr/local/etc/squid
  324. wget -c $SLEEPYHU/config/freebsd-squid.tar.gz
  325. tar xzf freebsd-squid.tar.gz
  326. rm freebsd-squid.tar.gz
  327. echo "
  328. squid_enable=\"YES\"" >> /etc/rc.conf
  329. # end Squid telepitese
  330.  
  331. # LAMP telepitese
  332. elif [ "$MENU" = "LAMP telepitese" ]; then
  333. cd /usr/ports/www/apache22/
  334. make config install distclean
  335. echo 'apache22_enable="YES"' >> /etc/rc.conf
  336.  
  337. echo 'apache2ssl_enable="YES"' >> /etc/rc.conf
  338. echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http
  339.  
  340. cd /usr/local/etc/apache22/
  341. openssl genrsa -des3 -out server.key 1024
  342. openssl req -new -key server.key -out server.csr
  343. openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
  344. chmod 0400 server.key server.crt
  345.  
  346. echo 'Include etc/apache22/extra/httpd-ssl.conf' >> /usr/local/etc/apache22/httpd.conf
  347.  
  348. echo "Please disable: ServerSignature"
  349. mcedit /usr/local/etc/apache22/extra/httpd-default.conf
  350. mkdir -p /usr/local/www/apache22/data/ssl
  351. echo '
  352. NameVirtualHost *:443
  353. <VirtualHost *:443>
  354. ServerName lawrencium
  355. ServerAlias lawrencium.ipc.net
  356. DocumentRoot /usr/local/www/apache22/data/
  357. <Directory /usr/local/www/apache22/data/>
  358. Order allow,deny
  359. Allow from all
  360. </Directory>
  361. SSLEngine On
  362. SSLCertificateFile /usr/local/etc/apache22/ssl.crt/server.crt
  363. SSLCertificateKeyFile /usr/local/etc/apache22/ssl.key/server.key
  364. AllowOverride None
  365. Order Deny, Allow
  366. </VirtualHost>' >> /usr/local/etc/apache22/extra/httpd-vhosts.conf
  367.  
  368.  
  369. cd /usr/ports/lang/php5
  370. make config install distclean
  371. cd /usr/ports/lang/php5-extensions
  372. make config install distclean
  373.  
  374. cp /usr/local/etc/apache22/httpd.conf /usr/local/etc/apache22/httpd.conf.orig
  375. cat /usr/local/etc/apache22/httpd.conf | grep -v mod_unique > httpd.conf.new
  376. mv /usr/local/etc/apache22/httpd.conf.new /usr/local/etc/apache22/httpd.conf
  377. echo "
  378. AddType application/x-httpd-php .php
  379. AddType application/x-httpd-php-source .phps
  380. " >>  /usr/local/etc/apache22/httpd.conf
  381.  
  382. echo "<IfModule mod_dir.c>
  383. DirectoryIndex index.php index.html index.htm
  384. </IfModule> " >>  /usr/local/etc/apache22/httpd.conf
  385.  
  386. echo "Include etc/apache22/extra/httpd-userdir.conf
  387. Include etc/apache22/extra/httpd-vhosts.conf
  388.  
  389. <IfModule mod_dir.c>
  390. DirectoryIndex index.php index.html index.htm
  391. </IfModule>" >>  /usr/local/etc/apache22/httpd.conf
  392.  
  393. mcedit /usr/local/etc/apache22/extra/httpd-vhosts.conf
  394.  
  395. cp /usr/local/etc/php-ini-recommended /usr/local/etc/php.ini
  396.  
  397. cd /usr/ports/databases/mysql55-server
  398. make install distclean
  399. echo "mysql_enable=\"YES\"" >> /etc/rc.conf
  400. /usr/local/etc/rc.d/mysql-server start
  401. mysqladmin -u root password RooTpassw0rd
  402. echo "MySQL jelszo: RooTpassw0rd beallitva."
  403. mysql -u root -p
  404. rm /root/.history
  405.  
  406. cd /usr/ports/databases/phpmyadmin
  407. make config install distclean
  408. ln -s /usr/local/www/phpMyAdmin /usr/local/www/apache22/data
  409. cp /usr/local/www/phpMyAdmin/config.sample.inc.php config.inc.php
  410. echo "
  411. $cfg['blowfish_secret'] = 'ohShi9ooYaet2Cheij';
  412. $cfg['Servers'][$i]['controluser'] = 'root';
  413. $cfg['Servers'][$i]['controlpass'] = 'RooTpassw0rd';"
  414. echo "Nyomd meg az ENTER-t a folytatashoz."
  415. read
  416. mcedit config.inc.php
  417. # end LAMP telepitese
  418.  
  419. # Postfix telepitese
  420. elif [ "$MENU" = "Postfix telepitese" ]; then
  421. pkg_add -r postfix spamass-milter spamd procmail clamav
  422. cp /usr/local/etc/postfix/main.cf /usr/local/etc/postfix/main.cf.orig
  423. echo '
  424. smtpd_banner = $myhostname
  425. biff = no
  426. append_dot_mydomain = no
  427. readme_directory = no
  428.  
  429. myhostname = myhost.org
  430. myorigin = $myhostname
  431. alias_maps = hash:/etc/aliases
  432. alias_database = hash:/etc/aliases
  433. mydestination =   $myhostname,localhost
  434. #relayhost =
  435. # 50 MB = 52428800 byte
  436. mailbox_size_limit = 1073741824
  437. message_size_limit = 52428800
  438.  
  439. # 30 MB = 52428800 byte
  440. #mailbox_size_limit = 31457280
  441. #message_size_limit = 31457280
  442.  
  443. recipient_delimiter = +
  444. inet_interfaces = all
  445. default_transport = smtp
  446. relay_transport = smtp
  447. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  448. smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
  449. inet_protocols = ipv4
  450.  
  451. smtpd_use_tls = no
  452. smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.crt
  453. smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.key
  454. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  455. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  456.  
  457. smtpd_sasl_local_domain =
  458. smtpd_sasl_auth_enable = yes
  459. smtpd_sasl_security_options = noanonymous
  460. broken_sasl_auth_clients = yes
  461. smtpd_tls_auth_only = no
  462. smtp_use_tls = yes
  463. smtp_tls_note_starttls_offer = yes
  464. smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/cacert.pem
  465. smtpd_tls_loglevel = 1
  466. smtpd_tls_received_header = yes
  467. smtpd_tls_session_cache_timeout = 3600s
  468. tls_random_source = dev:/dev/urandom
  469.  
  470. #mailbox_command =
  471. mailbox_command = /usr/local/bin/procmail -a "$EXTENSION"' > /usr/local/etc/postfix/main.cf
  472.  
  473. echo 'postfix_enable="YES"
  474. sendmail_enable="NO"
  475. sendmail_submit_enable="NO"
  476. sendmail_outbound_enable="NO"
  477. sendmail_msp_queue_enable="NO"' >> /etc/rc.conf
  478.  
  479. echo "
  480. daily_clean_hoststat_enable=\"NO\"
  481. daily_status_mail_rejects_enable=\"NO\"
  482. daily_status_include_submit_mailq=\"NO\"
  483. daily_submit_queuerun=\"NO\"" >> /etc/periodic.conf
  484.  
  485. echo '
  486. DEFAULT=/var/mail/$LOGNAME
  487. MAILDIR=$HOME/mail
  488.  
  489. SUBJECT=`formail -zxSubject:`
  490.  
  491. :0
  492. VIRUS=| clamdscan --no-summary --stdout - | cut -d' ' -f2 -
  493.  
  494. :0
  495. SPAM=| /usr/bin/spamc
  496.  
  497.  
  498. :0
  499. * SPAM ?? !^OK
  500. {
  501.  :0 fw
  502.    | formail -i"Subject: [**SPAM**]: ${SUBJECT}"
  503.    | formail -b -f -t -I "X-SPAM-status: Yes, $MATCH"
  504. }
  505.  
  506. :0
  507. * VIRUS ?? !^OK
  508. {
  509.  :0 fw
  510.    | formail -i"Subject: [**VIRUS**: ${VIRUS}] ${SUBJECT}"
  511.    | formail -b -f -t -I "X-Clamav-status: Yes, $MATCH"
  512. }
  513.  
  514. ' /usr/local/etc/procmailrc
  515. echo 'clamav_clamd_enable="YES"' >> /etc/rc.conf
  516.  
  517. /usr/local/etc/mail/spamassassin/local.cf.sample /usr/local/etc/mail/spamassassin/local.cf
  518. chmod 755 /usr/local/etc/rc.d/spamass-milter.sh
  519. echo '
  520. spamd_enable=""YES"
  521. spamass_milter_enable="YES"' >> /etc/rc.conf
  522.  
  523. /usr/local/etc/rc.d/sa-spamd onestart
  524. /usr/local/etc/rc.d/spamass-milter onestart
  525. /usr/local/etc/rc.d/postfix onestart
  526. /usr/local/etc/rc.d/clamav-clamd onestart
  527. echo 'XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X' > /root/spamtest.txt
  528. echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > /root/virustest.txt
  529. cd /usr/ports/mail/openwebmail
  530. make install clean
  531. cp /usr/local/www/cgi-bin/openwebmail/etc/openwebmail.conf /usr/local/www/cgi-bin/openwebmail/etc/openwebmail.conf.orig
  532. wget $SLEEPYHU/config/openwebmail.conf -O /usr/local/www/cgi-bin/openwebmail/etc/openwebmail.conf
  533. # end Postfix telepitese
  534.  
  535.  
  536.  
  537. ######################################### Legvége #########################################
  538. else
  539.     echo Nincs ilyen menüpont.
  540. fi
  541. done
  542. }
  543. clear
  544. echo "LazyBSD Install Script v1.0 for FreeBSD 9.0 RELEASE- Copyright © 2012 www.sleepy.hu"
  545. echo "----------------------------------------------------------------------------"
  546. install
Advertisement
Add Comment
Please, Sign In to add comment