Created
December 12, 2015 21:13
-
-
Save msimerson/e4db121839ca537615d8 to your computer and use it in GitHub Desktop.
Mail Toaster 6 - sample output - provision-clamav
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sh provision-clamav.sh | |
mysql enabled | |
toaster host: freebsd-10-2.vmware.imac27.simerson.net | |
toaster domain: imac27.simerson.net | |
shell: /usr/local/bin/bash | |
safe name: stage | |
zroot/jails/base-10.2-RELEASE@p8 snapshot exists | |
*** stage jail cleanup *** | |
stopping jail stage (stage) | |
Stopping jails:. | |
no data fs to unmount | |
*** stage jail filesystem setup *** | |
zfs clone zroot/jails/base-10.2-RELEASE@p8 zroot/jails/stage | |
mounting /usr/ports | |
no zroot/data/clamav to mount | |
sysrc -R /jails/stage hostname=clamav | |
hostname: base -> clamav | |
*** stage jail startup *** | |
Setting hostname: clamav. | |
Creating and/or trimming log files. | |
Starting syslogd. | |
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib | |
32-bit compatibility ldconfig path: /usr/lib32 | |
Clearing /tmp (X related). | |
Updating motd:. | |
Starting cron. | |
Sat Dec 12 13:10:38 PST 2015 | |
Updating FreeBSD repository catalogue... | |
FreeBSD repository is up-to-date. | |
All repositories are up-to-date. | |
pkg -j stage install -y clamav | |
Updating FreeBSD repository catalogue... | |
FreeBSD repository is up-to-date. | |
All repositories are up-to-date. | |
The following 8 package(s) will be affected (of 0 checked): | |
New packages to be INSTALLED: | |
clamav: 0.98.7 | |
libxml2: 2.9.3 | |
unzoo: 4.4_2 | |
arc: 5.21p | |
libltdl: 2.4.6 | |
lha: 1.14i_6 | |
arj: 3.10.22_4 | |
curl: 7.44.0 | |
The process will require 20 MiB more space. | |
6 MiB to be downloaded. | |
[clamav] Fetching clamav-0.98.7.txz: 100% 3 MiB 1.7MB/s 00:02 | |
[clamav] Fetching libxml2-2.9.3.txz: 100% 790 KiB 808.7kB/s 00:01 | |
[clamav] Fetching unzoo-4.4_2.txz: 100% 16 KiB 16.7kB/s 00:01 | |
[clamav] Fetching arc-5.21p.txz: 100% 49 KiB 50.3kB/s 00:01 | |
[clamav] Fetching libltdl-2.4.6.txz: 100% 36 KiB 36.5kB/s 00:01 | |
[clamav] Fetching lha-1.14i_6.txz: 100% 34 KiB 34.9kB/s 00:01 | |
[clamav] Fetching arj-3.10.22_4.txz: 100% 223 KiB 228.0kB/s 00:01 | |
[clamav] Fetching curl-7.44.0.txz: 100% 1 MiB 1.4MB/s 00:01 | |
Checking integrity... done (0 conflicting) | |
[clamav] [1/8] Installing libxml2-2.9.3... | |
[clamav] [1/8] Extracting libxml2-2.9.3: 100% | |
[clamav] [2/8] Installing unzoo-4.4_2... | |
[clamav] [2/8] Extracting unzoo-4.4_2: 100% | |
[clamav] [3/8] Installing arc-5.21p... | |
[clamav] [3/8] Extracting arc-5.21p: 100% | |
[clamav] [4/8] Installing libltdl-2.4.6... | |
[clamav] [4/8] Extracting libltdl-2.4.6: 100% | |
[clamav] [5/8] Installing lha-1.14i_6... | |
[clamav] [5/8] Extracting lha-1.14i_6: 100% | |
[clamav] [6/8] Installing arj-3.10.22_4... | |
[clamav] [6/8] Extracting arj-3.10.22_4: 100% | |
[clamav] [7/8] Installing curl-7.44.0... | |
[clamav] [7/8] Extracting curl-7.44.0: 100% | |
[clamav] [8/8] Installing clamav-0.98.7... | |
===> Creating users and/or groups. | |
Creating group 'clamav' with gid '106'. | |
Using existing group 'mail'. | |
Creating user 'clamav' with uid '106'. | |
Adding user 'clamav' to group 'mail'. | |
[clamav] [8/8] Extracting clamav-0.98.7: 100% | |
*** downloading virus definition databases *** | |
jexec stage freshclam | |
ClamAV update process started at Sat Dec 12 13:10:46 2015 | |
WARNING: Your ClamAV installation is OUTDATED! | |
WARNING: Local version: 0.98.7 Recommended version: 0.99 | |
DON'T PANIC! Read http://www.clamav.net/support/faq | |
Downloading main.cvd [100%] | |
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo) | |
Downloading daily.cvd [100%] | |
daily.cvd updated (version: 21156, sigs: 1731171, f-level: 63, builder: neo) | |
Downloading bytecode.cvd [100%] | |
bytecode.cvd updated (version: 270, sigs: 46, f-level: 63, builder: shurley) | |
Database updated (4155442 signatures) from database.clamav.net (IP: 194.8.197.22) | |
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory | |
*** starting ClamAV daemons *** | |
sysrc -R /jails/stage clamav_clamd_enable=YES | |
clamav_clamd_enable: -> YES | |
jexec stage service clamav-clamd start | |
Starting clamav_clamd. | |
sysrc -R /jails/stage clamav_freshclam_enable=YES | |
clamav_freshclam_enable: -> YES | |
jexec stage service clamav-freshclam start | |
Starting clamav_freshclam. | |
testing ClamAV... | |
clamav clamd 15169 4 tcp4 172.16.15.254:3310 *:* | |
*** promoting jail clamav *** | |
stopping jail stage (stage) | |
Stopping jails: stage. | |
nameserver 172.16.15.3 | |
unmounting /jails/stage/usr/ports | |
no data fs to unmount | |
unmounting /jails/stage/dev | |
clearing pkg cache | |
zfs rename zroot/jails/stage zroot/jails/clamav.ready | |
stopping jail clamav (clamav) | |
Stopping jails:. | |
no data fs to unmount | |
zfs rename zroot/jails/clamav.ready zroot/jails/clamav | |
clamav { | |
ip4.addr = 172.16.15.5; | |
} | |
*** start jail clamav *** | |
Starting jails: clamav. | |
Success! A new 'clamav' jail is provisioned | |
# jls | |
JID IP Address Hostname Path | |
3 172.16.15.3 dns /jails/dns | |
5 172.16.15.4 mysql /jails/mysql | |
7 172.16.15.5 clamav /jails/clamav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment