clamd_for_centos 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/clamd_for_centos/version.rb +1 -1
- data/lib/clamd_for_centos.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58c04d6baff7cbdf4a5a0da52dee0e24245dc48e3a6a526a64581c44a26db086
|
4
|
+
data.tar.gz: bd9f4b41ea97a80962768727b25486cf5e0adbf7567b4f14da67a2c946404138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e30ecc61479c76baf5f59987bb9ddfe90c0a9202ae9b4e41a087a21321acffa4370e8682032046dceb503b73c3a75f4dcfb5f44d1b0a6948e1de4223baa8ccc
|
7
|
+
data.tar.gz: fd50b234c316d62680991386d8d7d54f8f45b8edf8612f77d7d785c8632d87927c3ee7c0229f4042292b1ad636543f15f4d797ddffb6bf0ed3ef73815c8afb94
|
data/lib/clamd_for_centos.rb
CHANGED
@@ -3,18 +3,18 @@ require "clamd_for_centos/version"
|
|
3
3
|
module ClamdForCentos
|
4
4
|
# Your code goes here...
|
5
5
|
def self.setup
|
6
|
-
status = system("sudo
|
7
|
-
if status == true
|
6
|
+
status = system("sudo yum install clamav clamav-scanner-sysvinit clamav-update -y")
|
7
|
+
# if status == true
|
8
8
|
file_edit = system("sudo sed -i -e 's/^Example/#Example/' /etc/clamd.d/scan.conf")
|
9
|
-
file_scanff = system("
|
9
|
+
file_scanff = system(" echo 'LocalSocket /var/run/clamd.scan/clamd.sock' | sudo tee -a /etc/clamd.d/scan.conf")
|
10
10
|
|
11
11
|
file_fresh_clam = system("sudo sed -i -e 's/^Example/#Example/' /etc/freshclam.conf")
|
12
12
|
system("sudo freshclam")
|
13
|
-
system("sudo
|
14
|
-
system("sudo
|
15
|
-
else
|
13
|
+
system("sudo service clamd.scan start")
|
14
|
+
system("sudo chkconfig clamd.scan on")
|
15
|
+
# else
|
16
16
|
puts "rerun with sudo"
|
17
|
-
end
|
17
|
+
# end
|
18
18
|
end
|
19
19
|
|
20
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clamd_for_centos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naveen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|