Consolidated deployment scripts
This commit is contained in:
12
deployment/remote_server/generate-key.sh
Executable file
12
deployment/remote_server/generate-key.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
read -p "Enter the name of the computer you plan to use the key on: " pcname
|
||||
|
||||
if [ -x "$(command -v docker)" ]; then
|
||||
docker compose exec tam3-api /app/key.py generate $pcname
|
||||
elif [ -x "$(command -v podman)" ]; then
|
||||
podman compose exec tam3-api /app/key.py generate $pcname
|
||||
else
|
||||
echo "Neither Docker nor Podman are installed. Please install whichever you prefer, then try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Note the key above this line. You can use that for the computer."
|
||||
Reference in New Issue
Block a user