2022-01-23 05:14:39 +01:00
|
|
|
#!/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
|
2022-01-23 08:20:44 +01:00
|
|
|
bash scripts/server.sh
|
2022-01-23 05:14:39 +01:00
|
|
|
|
|
|
|
elif [[ $prompt == "client" ]]
|
|
|
|
then
|
2022-01-23 08:20:44 +01:00
|
|
|
bash scripts/client.sh
|
2022-01-23 05:14:39 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "Nothing has been selected."
|
2022-01-23 08:20:44 +01:00
|
|
|
fi
|