only launch remote-login.sh if it exists

This commit is contained in:
Tobias Powalowski 2023-09-14 06:37:29 +02:00
parent 38bf7c3b29
commit 23c7af570a
3 changed files with 9 additions and 9 deletions

View file

@ -26,7 +26,7 @@ if [[ -z "${TTY}" && -z "${SSH_TTY}" && -z "${TMUX}" ]]; then
[[ "${SHLVL}" == "2" ]] && cat /etc/motd
fi
# run remote-login.sh on ssh connection
if [[ -z "${STY}" && -n "${SSH_TTY}" ]]; then
if [[ -z "${STY}" && -n "${SSH_TTY}" && -e "/usr/bin/remote-login.sh" ]]; then
/usr/bin/remote-login.sh
exit 0
fi

View file

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Archboot Project - SG Singapore Mirror</title>
<title>Archboot Project | SG - Singapore Mirror</title>
<link rel="stylesheet" href="./web/styles.css">
<link rel="icon" href="./web/archboot.png">
<!--[if lt IE 9]>
@ -13,8 +13,8 @@
</head>
<body>
<p><span><img src="./web/logo.png" alt="Logo"></span></p>
<h1>Archboot Project - SG Singapore Mirror | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Z7GXKW4MKHK7C"><img src="./web/donate.png" alt="Donate"></a></h1>
<p><strong>&copy; 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong><br>Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></</p>
<p><a href="https://archboot.com"><strong>Homepage</strong></a> | <a href="iso/"><strong>Download ISO</strong></a> | <a href="pkg/"><strong>Package Repository</strong></a> | <a href="src/"><strong>Download Sources</strong></a></p>
<h1>Archboot Project | SG - Singapore Mirror | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Z7GXKW4MKHK7C"><img src="./web/donate.png" alt="Donate"></a></h1>
<h2><a href="https://archboot.com"><strong>Homepage</strong></a> | <a href="iso/"><strong>Download</strong></a> | <a href="pkg/"><strong>Package Repository</strong></a> | <a href="src/"><strong>Build Sources</strong></a></h2>
<p><strong>&copy; 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong> | Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></p>
</body>
</html>

View file

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Archboot Project - US Arizona Mirror</title>
<title>Archboot Project | US - Arizona Mirror</title>
<link rel="stylesheet" href="./web/styles.css">
<link rel="icon" href="./web/archboot.png">
<!--[if lt IE 9]>
@ -13,8 +13,8 @@
</head>
<body>
<p><span><img src="./web/logo.png" alt="Logo"></span></p>
<h1>Archboot Project - US Arizona Mirror | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Z7GXKW4MKHK7C"><img src="./web/donate.png" alt="Donate"></a></h1>
<p><strong>&copy; 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong><br>Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></</p>
<p><a href="https://archboot.com"><strong>Homepage</strong></a> | <a href="iso/"><strong>Download ISO</strong></a> | <a href="pkg/"><strong>Package Repository</strong></a> | <a href="src/"><strong>Download Sources</strong></a></p>
<h1>Archboot Project | US - Arizona Mirror | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Z7GXKW4MKHK7C"><img src="./web/donate.png" alt="Donate"></a></h1>
<h2><a href="https://archboot.com"><strong>Homepage</strong></a> | <a href="iso/"><strong>Download</strong></a> | <a href="pkg/"><strong>Package Repository</strong></a> | <a href="src/"><strong>Build Sources</strong></a></h2>
<p><strong>&copy; 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong> | Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></p>
</body>
</html>