Spaces:
Sleeping
Sleeping
Commit
·
50f577f
1
Parent(s):
6c8c649
tratando de averiguar user ids
Browse files- entrypoint-rstudio.sh +6 -1
entrypoint-rstudio.sh
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
#!/bin/bash --login
|
2 |
set -e
|
3 |
|
|
|
|
|
|
|
|
|
|
|
4 |
echo ". ${HOME}/miniconda3/etc/profile.d/conda.sh" >> ${HOME}/.bashrc
|
5 |
# Make bash automatically activate the conda environment
|
6 |
echo "conda activate ${ENV_PREFIX}" >> ~/.bashrc
|
@@ -22,4 +27,4 @@ ulimit -s 16384
|
|
22 |
|
23 |
# start rstudio server
|
24 |
/init
|
25 |
-
exec "$@"
|
|
|
1 |
#!/bin/bash --login
|
2 |
set -e
|
3 |
|
4 |
+
uid=$(id -u)
|
5 |
+
gid=$(id -g)
|
6 |
+
|
7 |
+
echo "uid $uid gid $gid"
|
8 |
+
|
9 |
echo ". ${HOME}/miniconda3/etc/profile.d/conda.sh" >> ${HOME}/.bashrc
|
10 |
# Make bash automatically activate the conda environment
|
11 |
echo "conda activate ${ENV_PREFIX}" >> ~/.bashrc
|
|
|
27 |
|
28 |
# start rstudio server
|
29 |
/init
|
30 |
+
exec "$@"
|