Files
ProxmoxVE/install/watchyourlan-install.sh
T

55 lines
1.1 KiB
Bash
Raw Normal View History

2024-04-05 06:43:16 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
2024-04-05 06:43:16 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/aceberg/WatchYourLAN
2024-04-05 06:43:16 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-04-05 06:43:16 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
2025-10-07 21:40:31 +02:00
$STD apt install -y \
2025-08-15 12:57:16 +02:00
arp-scan \
ieee-data \
libwww-perl
2024-04-05 06:43:16 -04:00
msg_ok "Installed Dependencies"
2025-08-15 12:57:16 +02:00
fetch_and_deploy_gh_release "watchyourlan" "aceberg/WatchYourLAN" "binary"
msg_info "Configuring WatchYourLAN"
2024-04-05 06:43:16 -04:00
mkdir /data
cat <<EOF >/data/config.yaml
arp_timeout: "500"
auth: false
auth_expire: 7d
auth_password: ""
auth_user: ""
color: dark
dbpath: /data/db.sqlite
guiip: 0.0.0.0
guiport: "8840"
history_days: "30"
iface: eth0
ignoreip: "no"
loglevel: verbose
shoutrrr_url: ""
theme: solar
timeout: 60
EOF
2025-08-15 12:57:16 +02:00
msg_ok "Configured WatchYourLAN"
2024-04-05 06:43:16 -04:00
msg_info "Creating Service"
sed -i 's|/etc/watchyourlan/config.yaml|/data/config.yaml|' /lib/systemd/system/watchyourlan.service
2025-04-01 20:22:40 +02:00
systemctl enable -q --now watchyourlan
2024-04-05 06:43:16 -04:00
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc