[WebUI] Fixed install script (#2619)

WebUI Install script fails if directory /usr/lib/node_modules does not already exist
This commit is contained in:
Sukchan Lee 2023-09-19 21:00:44 +09:00
parent 8a3dbd44ae
commit 48de174a3b
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ print_status "Build the Open5GS WebUI..."
exec_cmd "cd ./${PACKAGE}-${VERSION}/webui && npm clean-install && npm run build"
print_status "Install the Open5GS WebUI..."
exec_cmd "mkdir -p /usr/lib/node_modules"
exec_cmd "mv ./${PACKAGE}-${VERSION}/webui /usr/lib/node_modules/${PACKAGE}"
exec_cmd_nobail "chown -R open5gs:open5gs /usr/lib/node_modules/${PACKAGE}"