Add N8N and network changes
This commit is contained in:
19
install.sh
19
install.sh
@@ -83,19 +83,18 @@ if [ "$(pwd)" != "$HOME/dotfiles" ]; then
|
||||
sudo apt update
|
||||
sudo apt install -y git
|
||||
if ! git clone https://git.trude.dev/trude/dotfiles --depth 1; then
|
||||
echo "${RED}Error cloning dotfiles repository. Exiting...${NC}"
|
||||
exit 2
|
||||
echo "${RED}Error cloning dotfiles repository. Update skipped...${NC}"
|
||||
fi
|
||||
cd dotfiles || exit
|
||||
echo "${GREEN}dotfiles repository cloned successfully.${NC}"
|
||||
else
|
||||
echo "${YELLOW}Updating dotfiles repository...${NC}"
|
||||
pull_output=$(git pull)
|
||||
echo "$pull_output"
|
||||
if ! echo "$pull_output" | grep -q "Already up to date."; then
|
||||
echo "${YELLOW}Changes detected. Re-running script...${NC}"
|
||||
exec "$0" "$@"
|
||||
fi
|
||||
# else
|
||||
# echo "${YELLOW}Updating dotfiles repository...${NC}"
|
||||
# pull_output=$(git pull)
|
||||
# echo "$pull_output"
|
||||
# if ! echo "$pull_output" | grep -q "Already up to date."; then
|
||||
# echo "${YELLOW}Changes detected. Re-running script...${NC}"
|
||||
# exec "$0" "$@"
|
||||
# fi
|
||||
fi
|
||||
|
||||
mkdir -p "$HOME/dotfiles/logs"
|
||||
|
||||
@@ -36,3 +36,8 @@ FILEBROWSER_DATABASE=/mnt/md0/filebrowser/database
|
||||
PROSODY_CONFIG=/mnt/md0/prosody/config
|
||||
PROSODY_LOGS=/tmp/prosody/logs
|
||||
PROSODY_MODULES=/mnt/md0/prosody/modules
|
||||
|
||||
# N8N Automation
|
||||
N8N_HOST=n8n.trude.dev
|
||||
N8N_DATA=/mnt/md0/n8n/data
|
||||
N8N_FILES=/mnt/md0/n8n/files
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
- muc.trude.dev (group chats)
|
||||
- share.trude.dev (file sharing)
|
||||
- proxy.trude.dev (compatibility)
|
||||
- n8n.trude.dev
|
||||
|
||||
## Tailscale Access / Local
|
||||
|
||||
|
||||
@@ -37,3 +37,7 @@ sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin d
|
||||
|
||||
echo "Docker installation complete!"
|
||||
docker --version
|
||||
|
||||
echo "Allowing Docker use without sudo..."
|
||||
sudo usermod -aG docker ${USER}
|
||||
exec sg docker newgrp
|
||||
Reference in New Issue
Block a user