summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--hyperledger-fabric.install30
2 files changed, 22 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8edfc1065cc6..af10f573317e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Mon Dec 11 16:05:46 UTC 2017
+# Tue Dec 19 15:40:09 UTC 2017
pkgbase = hyperledger-fabric
pkgdesc = A platform for distributed ledger solutions, underpinned by a modular architecture delivering high degrees of confidentiality, resiliency, flexibility and scalability
pkgver = 1.0.5
diff --git a/hyperledger-fabric.install b/hyperledger-fabric.install
index da22b12ff7d2..15e21bc61da1 100644
--- a/hyperledger-fabric.install
+++ b/hyperledger-fabric.install
@@ -4,10 +4,18 @@ home=/var/hyperledger
post_install() {
_mkuser
_chown
- cryptogen generate > /dev/null
- mv /crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/* /etc/hyperledger/fabric/tls
- chmod 644 /etc/hyperledger/fabric/tls/*
- rm -rf /crypto-config
+# cryptogen generate > /dev/null
+# mv /crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/* /etc/hyperledger/fabric/tls
+# chmod 644 /etc/hyperledger/fabric/tls/*
+# rm -rf /crypto-config
+cat << EOF
+===> If you use a Wayland session, please add these
+===> global variables to ~/.config/environment.d/fabric-peer.conf
+ FABRIC_CFG_PATH="/etc/hyperledger/fabric"
+ CORE_PEER_MSPCONFIGPATH="/etc/hyperledger/fabric/msp"
+
+===> Look at /etc/conf.d/fabric-peer.conf for an example
+EOF
}
post_upgrade() {
@@ -16,11 +24,15 @@ post_upgrade() {
}
post_remove() {
- echo "Please remove $home and user $usr manually doing"
- echo "userdel -rf $usr"
- echo "WARNING!!!"
- echo "Be sure to save your backup data"
- echo "/etc/hyperledger/fabric/tls should be deleted manually"
+cat << EOF
+===> Please remove $home and user $usr manually doing
+ userdel -rf $usr
+===> WARNING!!!"
+ Be sure to save your backup data"
+ /etc/hyperledger/fabric/tls should be deleted manually"
+
+===> Remember to review ~/.config/environment.d/fabric-peer.conf
+EOF
}
_chown() {