-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
#!/bin/bash | ||
|
||
USER=vscode | ||
|
||
# Reconfigure User id if set by user | ||
if [ ! -z "${USER_UID}" ] && [ "${USER_UID}" != "`id -u ${USER}`" ] ; then | ||
echo -n "Update uid for user ${USER} with ${USER_UID}" | ||
usermod -u ${USER_UID} ${USER} | ||
echo "... updated" | ||
else | ||
echo "skipping UID configuration" | ||
fi | ||
|
||
if [ -n "${USER_GID}" ] && [ "${USER_GID}" != "`id -g ${USER}`" ] ; then | ||
echo -n "Update gid for group ${USER} with ${USER_GID}" | ||
usermod -u ${USER_UID} ${USER} | ||
echo "... updated" | ||
else | ||
echo "skipping GID configuration" | ||
fi | ||
|
||
#if [ -z "$SSH_AUTH_SOCK" ]; then | ||
# # Check for a currently running instance of the agent | ||
# RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`" | ||
# if [ "$RUNNING_AGENT" = "0" ]; then | ||
# # Launch a new instance of the agent | ||
# ssh-agent -s &> $HOME/.ssh/ssh-agent | ||
# fi | ||
# eval `cat $HOME/.ssh/ssh-agent` | ||
#fi | ||
USER=root | ||
|
||
/bin/sh -c "while sleep 1000; do :; done" |