Add complete homelab agents structure, templates, and sysadmin-session-closer agent
This commit is contained in:
3
scripts/README.md
Normal file
3
scripts/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Scripts
|
||||
|
||||
Utility scripts for agent installation and management.
|
||||
18
scripts/install-agent.sh
Executable file
18
scripts/install-agent.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Install agent script
|
||||
|
||||
AGENT_NAME="${1:-}"
|
||||
HOMELAB_DIR="${HOME}/.homelab-agents"
|
||||
|
||||
if [ -z "$AGENT_NAME" ]; then
|
||||
echo "Usage: install-agent.sh <agent-name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "$HOMELAB_DIR/agents/$AGENT_NAME.md" ]; then
|
||||
echo "Error: Agent $AGENT_NAME not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing agent: $AGENT_NAME"
|
||||
cat "$HOMELAB_DIR/agents/$AGENT_NAME.md"
|
||||
Reference in New Issue
Block a user