#!/bin/bash

#
# Change to the firefoxForCalmip directory
#

ffcdir=$(dirname  $0)
cd $ffcdir

#
# If the firefox directory does not exist, we give up with a message
#
[[ ! -x Firefox.app  ]] && \
echo "Oups, firefox not found - Please download firefox ESR from this URL: " && \
echo "https://www.mozilla.org/en-US/firefox/organizations/all/" && echo && \
echo "and extract files to this directory" && echo "$ffcdir" && echo && \
echo "Then, try again" && exit 1

#
# Create the profile directory if necessary
#
[[ ! -d data ]] && mkdir data;
#
# Lance Firefox avec un profil local et sans se connecter à une instance
# qui tourne déjà.
#
./Firefox.app/Contents/MacOS/firefox-bin -profile data -no-remote https://vpn.eca.univ-toulouse.fr/auth/


