local-arch-repo/start.sh

21 lines
355 B
Bash
Raw Normal View History

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
./scripts/server.sh
elif [[ $prompt == "client" ]]
then
./scripts/client.sh
else
echo "Nothing has been selected."
fi