diff --git a/config/branding/config.ini b/config/branding/config.ini index 750b7fdf..e349a861 100644 --- a/config/branding/config.ini +++ b/config/branding/config.ini @@ -30,6 +30,10 @@ logos[] = "mghpcc.png" links[] = "https://www.mghpcc.org/" title[] = "Massachusetts Green High Performance Computing Center" +[loginshell] ; menu items, Login Shells +shell[] = "/bin/bash" +shell[] = "/bin/zsh" + [menuitems] ; menu items, add a label and link for each labels[] = "Documentation" links[] = "https://docs.unity.rc.umass.edu/" diff --git a/webroot/panel/account.php b/webroot/panel/account.php index e132d3b4..54ef615c 100644 --- a/webroot/panel/account.php +++ b/webroot/panel/account.php @@ -42,7 +42,11 @@ $USER->setSSHKeys($keys); // Update user keys break; case "loginshell": - $USER->setLoginShell($_POST["loginshell"]); + if ($_POST["shellSelect"] == "custom"){ + $USER->setLoginShell($_POST["shell"]); + } else { + $USER->setLoginShell($_POST["shellSelect"]); + } break; case "pi_request": if (!$USER->isPI()) { @@ -130,23 +134,70 @@