Last active
August 29, 2015 14:15
-
-
Save saxenap/4189df60f22d827583e8 to your computer and use it in GitHub Desktop.
Server Initialization script. Needs helper functions.
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 | |
# rm -rf server_initialization | |
# wget -O server_initialization https://gist.githubusercontent.com/saxenap/4189df60f22d827583e8/raw/ | |
# chmod 777 server_initialization | |
# ./server_initialization | |
loadHelpersFromUrl() | |
{ | |
rm -rf helpers | |
wget -O helpers ${1} | |
chmod 777 helpers | |
./helpers | |
} | |
main() | |
{ | |
loadHelpersFromUrl "https://gist.githubusercontent.com/saxenap/073049d1ead105417837/raw" | |
echo "Helpers loaded.. " | |
} | |
if [ "${1}" != "--source-only" ]; then | |
main "${@}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment