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 update
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
if ! git clone https://git.trude.dev/trude/dotfiles --depth 1; then
|
if ! git clone https://git.trude.dev/trude/dotfiles --depth 1; then
|
||||||
echo "${RED}Error cloning dotfiles repository. Exiting...${NC}"
|
echo "${RED}Error cloning dotfiles repository. Update skipped...${NC}"
|
||||||
exit 2
|
|
||||||
fi
|
fi
|
||||||
cd dotfiles || exit
|
cd dotfiles || exit
|
||||||
echo "${GREEN}dotfiles repository cloned successfully.${NC}"
|
echo "${GREEN}dotfiles repository cloned successfully.${NC}"
|
||||||
else
|
# else
|
||||||
echo "${YELLOW}Updating dotfiles repository...${NC}"
|
# echo "${YELLOW}Updating dotfiles repository...${NC}"
|
||||||
pull_output=$(git pull)
|
# pull_output=$(git pull)
|
||||||
echo "$pull_output"
|
# echo "$pull_output"
|
||||||
if ! echo "$pull_output" | grep -q "Already up to date."; then
|
# if ! echo "$pull_output" | grep -q "Already up to date."; then
|
||||||
echo "${YELLOW}Changes detected. Re-running script...${NC}"
|
# echo "${YELLOW}Changes detected. Re-running script...${NC}"
|
||||||
exec "$0" "$@"
|
# exec "$0" "$@"
|
||||||
fi
|
# fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$HOME/dotfiles/logs"
|
mkdir -p "$HOME/dotfiles/logs"
|
||||||
|
|||||||
@@ -36,3 +36,8 @@ FILEBROWSER_DATABASE=/mnt/md0/filebrowser/database
|
|||||||
PROSODY_CONFIG=/mnt/md0/prosody/config
|
PROSODY_CONFIG=/mnt/md0/prosody/config
|
||||||
PROSODY_LOGS=/tmp/prosody/logs
|
PROSODY_LOGS=/tmp/prosody/logs
|
||||||
PROSODY_MODULES=/mnt/md0/prosody/modules
|
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)
|
- muc.trude.dev (group chats)
|
||||||
- share.trude.dev (file sharing)
|
- share.trude.dev (file sharing)
|
||||||
- proxy.trude.dev (compatibility)
|
- proxy.trude.dev (compatibility)
|
||||||
|
- n8n.trude.dev
|
||||||
|
|
||||||
## Tailscale Access / Local
|
## 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!"
|
echo "Docker installation complete!"
|
||||||
docker --version
|
docker --version
|
||||||
|
|
||||||
|
echo "Allowing Docker use without sudo..."
|
||||||
|
sudo usermod -aG docker ${USER}
|
||||||
|
exec sg docker newgrp
|
||||||
Reference in New Issue
Block a user