added start.sh script

This commit is contained in:
Dan 2022-01-23 17:14:39 +13:00
parent 79bfb93acd
commit 3ea48f55ad
Signed by: dan
GPG Key ID: 57ABEF39C546B028
1 changed files with 21 additions and 0 deletions

21
start.sh Normal file
View File

@ -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