Commit b62c7170 authored by Peter Parente's avatar Peter Parente

Fix some whitespace and quoting

parent e1f54f62
...@@ -96,8 +96,8 @@ else ...@@ -96,8 +96,8 @@ else
# container runs as. Check that the user has an entry in the passwd # container runs as. Check that the user has an entry in the passwd
# file and if not add an entry. Also add a group file entry if the # file and if not add an entry. Also add a group file entry if the
# uid has its own distinct group but there is no entry. # uid has its own distinct group but there is no entry.
whoami &> /dev/null || STATUS=$? && true whoami &> /dev/null || STATUS=$? && true
if [[ "$STATUS" != "0" ]]; then if [[ "$STATUS" != "0" ]]; then
if [[ -w /etc/passwd ]]; then if [[ -w /etc/passwd ]]; then
echo "Adding passwd file entry for $(id -u)" echo "Adding passwd file entry for $(id -u)"
cat /etc/passwd | sed -e "s/^jovyan:/nayvoj:/" > /tmp/passwd cat /etc/passwd | sed -e "s/^jovyan:/nayvoj:/" > /tmp/passwd
...@@ -110,13 +110,13 @@ else ...@@ -110,13 +110,13 @@ else
echo "jovyan:x:$(id -u):" >> /etc/group echo "jovyan:x:$(id -u):" >> /etc/group
fi fi
else else
echo 'Container must be run with group root to update passwd file' echo 'Container must be run with group "root" to update passwd file'
fi fi
fi fi
# Warn if the user isn't going to be able to write files to $HOME. # Warn if the user isn't going to be able to write files to $HOME.
if [[ ! -w /home/jovyan ]]; then if [[ ! -w /home/jovyan ]]; then
echo 'Container must be run with group users to update files' echo 'Container must be run with group "users" to update files'
fi fi
else else
# Warn if looks like user want to override uid/gid but hasn't # Warn if looks like user want to override uid/gid but hasn't
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment