Final minimal viable solution

This commit is contained in:
donbuehl
2024-08-27 21:43:46 +02:00
parent db77c13552
commit 53704b58aa

View File

@@ -51,8 +51,7 @@ case 'ttyd':
// no child processes, restart ttyd to pick up possible font size change
if ($retval != 0) exec("kill ".$ttyd_pid[0]);
}
$shell = posix_getpwuid(0)['shell'] === '/bin/zsh' ? 'zsh' : 'bash';
if ($retval != 0) exec("ttyd-exec -i '$sock' '$shell' --login");
if ($retval != 0) exec("ttyd-exec -i '$sock' '" . posix_getpwuid(0)['shell'] . "' --login");
break;
case 'syslog':
// read syslog file