summaryrefslogtreecommitdiffstats
path: root/post-install
diff options
context:
space:
mode:
authorDhaivat Pandit <me@dhaiv.at>2015-04-11 11:27:19 -0700
committerDhaivat Pandit <me@dhaiv.at>2015-04-11 14:42:18 -0700
commitb8d52953820085eeba47bfde3b51b89a68bc0f8f (patch)
tree9a7352f90d815acbfe186ab56791435a739631ec /post-install
parent4161f66ccaacc57b445f1a1add35c429de84c63a (diff)
Packaging: first cut of working deb and rpm build
* to build deb & rpm simply run ``` version=<se.mv.er> vagrant provision ``` vagrant shell provisioner will run the inline script and generate a deb and an rpm file in the local directory. This is achieved by multivm Vagrantfile one for centos and one for debian * To install the generated deb - run sudo dpkg -i * /pgcli/pgcli_<se.mv.er>.deb (then sudo apt-get install -f if deps are missing on a clean debian install) * To install generated rpm - sudo yum install path-to-rpm * package will be installed under /usr/share/pgcli * script pgcli will be a symlink in /usr/local/bin/pgcli -> /usr/share/pgcli/bin/pgcli (with right shebang line #!/usr/share/pgcli/bin/python)
Diffstat (limited to 'post-install')
-rw-r--r--post-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/post-install b/post-install
new file mode 100644
index 00000000..d516a3f6
--- /dev/null
+++ b/post-install
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo "Setting up symlink to pgcli"
+ln -sf /usr/share/pgcli/bin/pgcli /usr/local/bin/pgcli