2021-09-09 14:11:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DIR=$(dirname "$(readlink -f "$0")")
|
|
|
|
. "$DIR/../env.sh"
|
|
|
|
"$PDIR/devel/python.sh"
|
|
|
|
|
2021-10-23 03:22:19 +00:00
|
|
|
# install mycli and pgcli
|
|
|
|
case "$PM" in
|
|
|
|
pkg)
|
|
|
|
echo todo
|
|
|
|
exit -1
|
|
|
|
;;
|
|
|
|
apt)
|
|
|
|
sudo apt install -y libpq-dev
|
|
|
|
;;
|
|
|
|
pacman)
|
|
|
|
sudo pacman -S --noconfirm --needed postgresql-libs
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2021-09-09 14:11:44 +00:00
|
|
|
sudo pip install mycli
|
|
|
|
sudo pip install pgcli
|