This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A bash script to setup GIT like deployment on your server | |
echo "Enter your server address e.g 25.32.132.1 or yourserver.com" | |
read serverAddress | |
echo "Enter Username which you use to login to your server e.g ubuntu" | |
read username | |
echo "Enter path of the private key (optional)" | |
read privateKeyPath | |
echo "Path of your server directory where code should reside: e.g ~/code or /var/www (required)" | |
read tempPath |