summarylogtreecommitdiffstats
path: root/moonfire-nvr-git.install
diff options
context:
space:
mode:
authorDaniel M. Capella2018-08-02 01:02:27 -0400
committerDaniel M. Capella2018-12-04 23:05:48 -0500
commit27d83226bb7d7097c795710fb4dc616af0be6be9 (patch)
tree83fa4a3027329e5c61dd4b387636c03658954cf9 /moonfire-nvr-git.install
downloadaur-27d83226bb7d7097c795710fb4dc616af0be6be9.tar.gz
Initial commit
Diffstat (limited to 'moonfire-nvr-git.install')
-rw-r--r--moonfire-nvr-git.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/moonfire-nvr-git.install b/moonfire-nvr-git.install
new file mode 100644
index 000000000000..3b0ba00319fc
--- /dev/null
+++ b/moonfire-nvr-git.install
@@ -0,0 +1,17 @@
+post_install() {
+ cat << EOF
+For fresh installs, follow these steps:
+
+Create the database and sample file directory:
+$ sudo install -d -g moonfire-nvr -o moonfire-nvr /var/lib/moonfire-nvr/{,db,sample}
+$ sudo -u moonfire-nvr moonfire-nvr init
+
+Configure the database:
+$ sudo -u moonfire-nvr moonfire-nvr config 2>debug-log
+
+Start and enable the daemon:
+$ sudo systemctl enable --now moonfire-nvr
+
+More details available at <https://github.com/scottlamb/moonfire-nvr/blob/master/guide/install.md>.
+EOF
+}