summarylogtreecommitdiffstats
path: root/nodejs-pass-server-node.install
diff options
context:
space:
mode:
authorTad Fisher2016-08-06 22:00:16 -0700
committerTad Fisher2016-08-06 23:05:21 -0700
commit449161727d541ef2195ba2fc6f01555cc447f43a (patch)
tree55dabbaa4416ebdd34c464462751abcc6add2a84 /nodejs-pass-server-node.install
downloadaur-nodejs-pass-server-node.tar.gz
Init at 0.3.0
Diffstat (limited to 'nodejs-pass-server-node.install')
-rw-r--r--nodejs-pass-server-node.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/nodejs-pass-server-node.install b/nodejs-pass-server-node.install
new file mode 100644
index 000000000000..06e9356c769b
--- /dev/null
+++ b/nodejs-pass-server-node.install
@@ -0,0 +1,26 @@
+# Some colored makepkg-like functions
+msg_blue() {
+ printf "${BLUE}==>${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
+}
+
+note() {
+ printf "${BLUE}==>${ALL_OFF}${YELLOW} NOTE:${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
+}
+
+ALL_OFF="$(tput sgr0)"
+BOLD="$(tput bold)"
+BLUE="${BOLD}$(tput setaf 4)"
+YELLOW="${BOLD}$(tput setaf 3)"
+
+post_install() {
+ note "To use with systemd, call 'systemctl --user enable pass-server-node' to enable the service for the first login session. You may configure the server using npm:
+
+ npm config set pass-server-node:port 8080
+ npm config set pass-server-node:password_store_dir ~/.password-store
+
+See https://github.com/cpoppema/pass-server-node for documentation."
+}
+
+post_upgrade() {
+ post_install
+}