added start.sh script
This commit is contained in:
parent
79bfb93acd
commit
3ea48f55ad
1 changed files with 21 additions and 0 deletions
21
start.sh
Normal file
21
start.sh
Normal 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
|
Loading…
Reference in a new issue