mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-10-01 01:36:16 +13:00
10 lines
297 B
Bash
10 lines
297 B
Bash
#!/bin/bash
|
|
set -o nounset
|
|
|
|
## Enforces the custom password specified in the PASSWORD environment variable
|
|
## The accepted RStudio username is the same as the USER environment variable (i.e., local user name).
|
|
|
|
|
|
IFS='' read -r password
|
|
|
|
[ "${USER}" = "${1}" ] && [ "${PASSWORD}" = "${password}" ]
|