Skip to content

Commit

Permalink
removing to_str
Browse files Browse the repository at this point in the history
  • Loading branch information
archcloudlabs committed Feb 23, 2023
1 parent bf5919f commit 55371f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/post/linux/manage/disable_clamav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def initialize(_info = {})
def run
clamav_socket = datastore['CLAMAV_UNIX_SOCKET']
print_status("Checking file path #{clamav_socket} exists and is writable... ")
if writable?(datastore[CLAMAV_UNIX_SOCKET].to_s)
if writable?(datastore[CLAMAV_UNIX_SOCKET])
print_good('File does exist and is writable!')

Socket.unix(datastore[CLAMAV_UNIX_SOCKET].to_s) do |sock|
Socket.unix(datastore[CLAMAV_UNIX_SOCKET]) do |sock|
print_status('Shutting down ClamAV!')
sock.write('SHUTDOWN')
end
Expand Down

0 comments on commit 55371f9

Please sign in to comment.