#
# NOTE: This script must be run only after a successful run of gawati_server_setup.sh
# It expects the basic components installed by gawati_server_setup to be in place !
#
#!/bin/bash

# name of the python virtual-env for fabric
FABVENV=venv_fabric

# python pip and fab relative paths
FABPY=../$FABVENV/bin/python
FABPIP=../$FABVENV/bin/pip
FAB=../$FABVENV/bin/fab
FABSRC=.

# install pip
#curl -z  -"get-pip.py"  "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
#python get-pip.py && rm -rf get-pip.py

# install virtualenv
#pip install virtualenv

# install the fabric virtual python
virtualenv $FABVENV

# install fabric in the virtual env, we dont
# want to mess with the system python
$FABPIP install fabric
echo "cd $FABSRC && $FAB \$*" > ../fab && chmod ug+x ../fab
echo "./fab -H localhost \$*" > ../fl && chmod ug+x ../fl

#
# NOTE: This script must be run only after a successful run of gawati_server_setup.sh
# It expects the basic components installed by gawati_server_setup to be in place !
#
#!/bin/bash

# name of the python virtual-env for fabric
FABVENV=venv_fabric

# python pip and fab relative paths
FABPY=../$FABVENV/bin/python
FABPIP=../$FABVENV/bin/pip
FAB=../$FABVENV/bin/fab
FABSRC=.

# install pip
#curl -z  -"get-pip.py"  "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
#python get-pip.py && rm -rf get-pip.py

# install virtualenv
#pip install virtualenv

# install the fabric virtual python
virtualenv ../$FABVENV

# install fabric in the virtual env, we dont
# want to mess with the system python
$FABPIP install fabric
echo "cd $FABSRC && $FAB \$*" > ../fab && chmod ug+x ../fab
echo "./fab -H localhost \$*" > ../fl && chmod ug+x ../fl

Fix to virtualevn folder path
Fix to virtualevn folder path
