403Webshell
Server IP : 66.29.132.122  /  Your IP : 18.118.139.82
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/puppetlabs/puppet/vendor_modules/zone_core/spec/acceptance/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/puppetlabs/puppet/vendor_modules/zone_core/spec/acceptance/lib/zone_util.rb
#
module ZoneUtils
  def clean(agent)
    on(agent, 'zoneadm list -cip').stdout.lines.each do |l|
      case l
      when %r{tstzone:running}
        on agent, 'zoneadm -z tstzone halt'
        on agent, 'zoneadm -z tstzone uninstall -F'
        on agent, 'zonecfg -z tstzone delete -F'
        on agent, 'rm -f /etc/zones/tstzone.xml'
      when %r{tstzone:configured}
        on agent, 'zonecfg -z tstzone delete -F'
        on agent, 'rm -f /etc/zones/tstzone.xml'
      when %r{tstzone:*}
        on agent, 'zonecfg -z tstzone delete -F'
        on agent, 'rm -f /etc/zones/tstzone.xml'
      end
    end
    on(agent, 'zfs list').stdout.lines.each do |l|
      case l
      when %r{rpool.tstzones}
        on agent, 'zfs destroy -f -r rpool/tstzones'
      end
    end
    on agent, 'rm -rf /tstzones'
  end
  module_function :clean
end

Youez - 2016 - github.com/yon3zu
LinuXploit