Merge pull request #10846 from cshoredaniel/pr-18.06-fix-nut-cgi-initscript
nut: Fix NUT CGI startup script
This commit is contained in:
commit
102c621fc7
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