further refine UI install cmd (#150)

* add the command to create `/usr/local/lib/moonfire-nvr`, necessary
  the first time
* have the files owned by root and use world-readable permissions, even
  if the building user has a restrictive umask set
This commit is contained in:
Scott Lamb 2021-08-19 21:54:58 -07:00
parent 7518b4c865
commit 826b81a95c

View File

@ -237,7 +237,8 @@ You can build the UI via `npm` and find it in the `ui/build` directory:
$ cd ui $ cd ui
$ npm install $ npm install
$ npm run build $ npm run build
$ sudo rsync -Pav --delete ui/build/ /usr/local/lib/moonfire-nvr/ui $ sudo mkdir /usr/local/lib/moonfire-nvr
$ sudo rsync --recursive --delete --chmod=D755,F644 ui/build/ /usr/local/lib/moonfire-nvr/ui
``` ```
### Running interactively straight from the working copy ### Running interactively straight from the working copy