diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..fcf86b9 --- /dev/null +++ b/start.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]] +then +echo "This script must be run as root" +exit 1 +fi + +read -r -p "Do you want to install a server repository or do you want to add a client? [SERVER/client] " prompt + +if [[ $prompt == "SERVER" ]] +then +./scripts/server.sh + +elif [[ $prompt == "client" ]] +then +./scripts/client.sh + +else +echo "Nothing has been selected." +fi \ No newline at end of file