mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
move existing stuff to archive dir (for now)
This commit is contained in:
parent
ae1204449c
commit
4fc491f61a
32 changed files with 0 additions and 0 deletions
14
archive-arch/wrappers/login_wrapper.sh
Executable file
14
archive-arch/wrappers/login_wrapper.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
mydir=$(dirname "$0")
|
||||
sudo "$mydir/send_login_alert.sh"
|
||||
|
||||
shell=$(getent passwd $LOGNAME | cut -d: -f7)
|
||||
if [ "$SSH_ORIGINAL_COMMAND" = "internal-sftp" ] # command given, so run it
|
||||
then
|
||||
exec /usr/lib/ssh/sftp-server
|
||||
elif [[ -n $SSH_ORIGINAL_COMMAND ]]; then
|
||||
exec "$shell" -c "$SSH_ORIGINAL_COMMAND"
|
||||
else # no command, so interactive login shell
|
||||
exec "$shell" -il
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue