login trixie fix

This commit is contained in:
frederik
2025-11-01 14:00:41 +01:00
parent edd5c62447
commit 1f91f7c2b5
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -317,8 +317,9 @@ Description=BirdNET-Pi Web Terminal
Restart=on-failure
RestartSec=3
Type=simple
User=${USER}
Environment=TERM=xterm-256color
ExecStart=/usr/local/bin/gotty --address localhost -w -p 8888 --path terminal --title-format "BirdNET-Pi Terminal" login
ExecStart=/usr/local/bin/gotty --address localhost -w -p 8888 --path terminal --title-format "BirdNET-Pi Terminal" bash -c 'read -p "Login: " username && [[ "$username" =~ ^[-_.a-z0-9]{1,30}$ ]] && su --pty -l $username'
[Install]
WantedBy=multi-user.target
EOF