1
0
mirror of https://github.com/dbcli/pgcli synced 2024-06-24 02:03:20 +00:00
pgcli/post-install
Dhaivat Pandit b8d5295382 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)
2015-04-11 14:42:18 -07:00

5 lines
103 B
Bash

#!/bin/bash
echo "Setting up symlink to pgcli"
ln -sf /usr/share/pgcli/bin/pgcli /usr/local/bin/pgcli