Now prints a more user-friendly error message when installed as a Snap package and permission errors are encountered. Updated the Snap build process as well.

This commit is contained in:
Joe Testa
2021-10-14 23:56:03 -04:00
parent 22a9559a82
commit 4ace52a190
7 changed files with 126 additions and 34 deletions

View File

@ -51,27 +51,14 @@ To download from production server and verify:
$ pip3 install ssh-audit
```
# Snap
To create the snap package, run a fully-updated Ubuntu Server 20.04 VM.
Install pre-requisites with:
Create the snap package with:
```
$ sudo apt install make snapcraft
$ sudo snap install review-tools lxd
```
Initialize LXD:
```
$ sudo lxd init --auto
```
Bump the version number in snapcraft.yaml. Then run:
```
$ make -f Makefile.snap
$ ./build_snap.sh
```
Upload the snap with: