cloud-backup/install.sh
Victor Westerlund eee7ffd989
1.0.1 (#4)
* Update README.md

* Update install.sh
2022-03-15 07:18:06 -08:00

28 lines
408 B
Bash
Executable file

install () {
python3 -m pip install $1
}
install python-dotenv
# Install Python libraries for cloud provider
case $1 in
"gcloud")
install google-cloud-storage
;;
"azure")
install azure-storage-blob
;;
"aws")
install boto3
;;
*) ;;
esac
# Create .env file if it doesn't exist
if [ ! -f ".env" ]; then
cp .env.example .env
sed -i "s/SERVICE_NAME=\"\"/SERVICE_NAME=\"$1\"" .env
fi