diff options
-rw-r--r-- | openntpd-controller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openntpd-controller.lua b/openntpd-controller.lua index d99b5a1..a206213 100644 --- a/openntpd-controller.lua +++ b/openntpd-controller.lua @@ -153,7 +153,7 @@ function config(self) end end - local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller + local url = self.conf.script .. self.conf.prefix .. self.conf.controller local status = self.model:getstatus(self) local config = self.model:getconfig() @@ -251,7 +251,7 @@ end function status (self) local cmd = self.clientdata.cmd - local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller + local url = self.conf.script .. self.conf.prefix .. self.conf.controller return ( {status = self.model:getstatus(self), url = url } ) end @@ -260,7 +260,7 @@ function expert (self) if ( self.clientdata.cmdsave ) then modifications = self.model:update_filecontent(modifications) end - local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller + local url = self.conf.script .. self.conf.prefix .. self.conf.controller -- Start/Stop/Restart process local cmdmanagement, actionresult |