mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user