Fixes 3
This commit is contained in:
@@ -189,6 +189,22 @@ class BunkerwebWorker < Kernel::ModuleCoreWorker
|
||||
puts output
|
||||
ACTION_OK
|
||||
end
|
||||
when "alias"
|
||||
m_domain = args[1].strip unless args[1].nil?
|
||||
m_alias = args[2].strip unless args[1].nil?
|
||||
if m_domain.nil?
|
||||
log_return("Domain should be specified. #{args}")
|
||||
else
|
||||
|
||||
log("add alias to domain to bunkerweb protection")
|
||||
output = `/usr/local/hestia/bin/v-bunkerweb-module alias #{m_domain} "#{m_alias}" shell`
|
||||
exit_status = $?.exitstatus
|
||||
if exit_status != 0
|
||||
log_return("Command failed with status #{exit_status}")
|
||||
else
|
||||
ACTION_OK
|
||||
end
|
||||
end
|
||||
when "help"
|
||||
puts "#{$0} bunkerweb_module COMMAND [OPTIONS] [json|csv|plain]"
|
||||
puts "COMMANDS:"
|
||||
|
||||
Reference in New Issue
Block a user