nut: Fix NUT CGI startup script
Commit c1aa1f784c
which backported
a number of fixes from master, missed one fix for nut-cgi. If
nut-cgi is installed standalone or nut-cgi starts before nut-server
(the default in 18.04.5) then the configuration file directory does
not get create and therefore there is no CGI configuration file.
This commit fixes that.
Closes: #10687
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
parent
44b1f65cc4
commit
45c95e8629
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=nut
|
||||
PKG_VERSION:=2.7.4
|
||||
PKG_RELEASE:=10
|
||||
PKG_RELEASE:=11
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/
|
||||
|
|
|
@ -29,7 +29,8 @@ nut_upscgi_add() {
|
|||
}
|
||||
|
||||
start() {
|
||||
rm -f $UPSCGI_C
|
||||
mkdir -m 0755 -p "$(dirname "$UPSCGI_C")"
|
||||
rm -f "$UPSCGI_C"
|
||||
|
||||
config_load nut_cgi
|
||||
|
||||
|
|
Loading…
Reference in a new issue