cloud-backup/install.sh
Victor Westerlund 76c006823e
Version 1.0 (#3)
* wip(22w9a): sql param fix

* wip(22w9b): add azure

* wip(22w9c): add single item backup

* wip(22w10a): add logger

* wip(22w11a): add aws support

* Update README.md
2022-03-15 07:06:54 -08:00

28 lines
No EOL
404 B
Bash
Executable file

install () {
python3 -m pip install $1
}
install python-dotenv
# Install Python libraries for cloud provider
case $1 in
"gcs")
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