Ayaz Salikhov
bcf5118cb7
Fix minor PyCharm issues
2022-03-19 00:15:27 +02:00
Ben Mares
c2b0311331
Improve wording of comment
2022-02-03 19:11:33 +01:00
Ayaz Salikhov
8d51336cfd
Update base-notebook/start.sh
2022-02-02 19:23:53 +03:00
Ben Mares
d362887ad2
Update comments about sudo and environment vars
2022-02-02 16:58:40 +01:00
Erik Sundell
bb9cb5d8c9
Add comments about sudo and environment variables
2022-02-02 16:46:41 +01:00
Ben Mares
5b7431886f
Prepend $CONDA_DIR/bin instead of appending
...
Fixes #1053
2022-01-29 20:07:50 +01:00
Yoshio Sugiyama
c7da5c62ad
fix variable typo
2021-12-15 20:25:32 +09:00
Ben Mares
8958ba7592
Warn if NB_USER not jovyan and can't rename home
2021-12-14 21:12:09 +01:00
Ben Mares
c772e98ac7
Fix spurious error messages with altered uid
2021-12-14 21:12:09 +01:00
Ayaz Salikhov
23e3284c20
Better wording
2021-11-16 02:07:12 +03:00
Ayaz Salikhov
f55ed54e4b
Better comment message
2021-11-16 01:50:05 +03:00
Ayaz Salikhov
d943ec36f7
Fix one more echo
2021-11-16 01:46:47 +03:00
Ayaz Salikhov
71428554b8
Merge branch 'master' into quiet
2021-11-15 18:48:21 +03:00
Ayaz Salikhov
d4759372ce
Only allow comma separation
2021-11-12 19:43:00 +03:00
Ben Mares
b7d85486b3
Fix apparent logic error in _log
...
Make noise when JUPYTER_DOCKER_STACKS_QUIET is empty
2021-11-12 12:35:40 +01:00
Erik Sundell
1f59bd7a77
start.sh: JUPYTER_DOCKER_STACKS_QUIET introduced
...
It is meant to allow you to opt out from non-error non-warning logs
generated by start.sh.
2021-11-12 12:35:35 +01:00
Erik Sundell
ee0105a8a5
start.sh: JUPYTER_ENV_VARS_TO_UNSET introduced
...
Allow you to define variables to be unset before running the command
that start.sh is supposed to start. These variables will still be
available in the hooks run before.
2021-11-11 22:48:20 +01:00
Ayaz Salikhov
8dfdbfd3a3
Merge pull request #1522 from mathbunnyru/asalikhov/remove_xdg_cache_home
...
Remove XDG_CACHE_HOME from start.sh sudo call
2021-11-10 21:24:20 +03:00
Ayaz Salikhov
f8c281a4f9
Fail if creating symlink fails
2021-11-10 18:27:23 +03:00
Ayaz Salikhov
0cc11990c7
Remove XDG_CACHE_HOME from start.sh sudo call
2021-11-10 17:58:32 +03:00
Ben Mares
3a5c2caded
Revert broken sed --in-place command
2021-11-10 13:10:46 +01:00
Ben Mares
4c47de93e7
start.sh: add parens for CHOWN_HOME_OPTS
...
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com >
2021-11-10 00:56:34 +01:00
Ben Mares
87ad5ffdf6
start.sh: improve some messages
2021-11-09 20:52:59 +01:00
Erik Sundell
1ce72b55e2
Apply suggestions from code review
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2021-11-09 13:44:06 +01:00
Ben Mares
4ef8a7816d
Undo changes which require further examination
2021-11-08 16:29:26 +01:00
Erik Sundell
018e5fc962
start.sh: tests, docs, and refinements
2021-11-08 16:29:11 +01:00
Erik Sundell
0365e73889
start.sh: update logging output
2021-11-08 16:25:41 +01:00
Erik Sundell
cd5e45b573
start.sh: refactor for readability
2021-11-08 16:25:41 +01:00
Erik Sundell
22c3516abd
start.sh: inline documentation
2021-11-08 16:25:40 +01:00
Erik Sundell
52cc15ccf6
start.sh: preserve environment properly when starting as root
2021-11-08 16:25:40 +01:00
Erik Sundell
f3989038a2
start.sh: add info about the user executing hooks
2021-11-08 16:25:40 +01:00
Thijs Walcarius
93a6865aa3
Also copy hidden files/directories
...
cp -R does not copy hidden files/directories, causing issues (cfr #1465 )
2021-09-15 11:17:44 +02:00
Ayaz Salikhov
0e24e5fdfe
Update base-notebook/start.sh
...
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com >
2021-08-24 15:11:28 +03:00
rigzba21
0dbce4526e
removing rsync dependency, using cp -R instead, reducing wait time in test
2021-08-06 14:55:58 -04:00
rigzba21
9d9b76909d
fixing bashate and flake8 errors
2021-08-06 13:19:39 -04:00
rigzba21
511ca22321
adding shellcheck fixes
2021-08-06 13:02:16 -04:00
rigzba21
2ef77522e6
using rsync instead of mv to prevent accidental file deletion when bind mount a volume
2021-08-05 22:40:17 -04:00
Ayaz Salikhov
0999f1a36f
Unify bash variables usage and add quotes where needed
2021-05-26 13:06:10 +03:00
Ayaz Salikhov
f961906480
Do not comment options
2021-05-21 16:43:05 +03:00
Ayaz Salikhov
7281a33137
Fix
2021-05-21 16:02:08 +03:00
Ayaz Salikhov
c0ae562059
Fix all shellcheck warnings
2021-05-21 15:49:49 +03:00
Ayaz Salikhov
3734d39090
Fix shellcheck warnings
2021-05-20 15:38:03 +03:00
stevenstetzler
eb50198dfa
Create home directory before changing ownership
2020-11-06 14:09:24 -08:00
Greg
e95f3c5e86
add -f option with groupadd
...
Signed-off-by: Greg <werner.greg@gmail.com >
2020-08-20 20:19:39 -04:00
Harry Weppner
2dd822dd6f
suppress "id: jovyan: no such user" message during start
2020-07-06 18:14:04 -07:00
Carsten Pohl
0710677ce2
Changed the regular expression in start.sh that reads the /etc/sudoers file and
...
adds the conda path as a secure path to sudo.
The regular expression expects that the equals sign has no leading and trailing
spaces after the parameter secure_path. Furthermore it expects that the value
is enclosed in double quotes.
This is the case for the sudoers file in debian based distributions, but the
in centos / redhat based distributions this is not the case. The default value
of the secure_path in centos / redhat based distributions has no double quotes
and leading and trailing spaces.
This change adds optional spaces before and after the space, and makes the
double quotes optional.
2020-04-17 16:10:38 +02:00
stevenstetzler
56e54a7320
Fall back on symlink if mv fails
2020-01-19 23:00:24 -08:00
Adrien Delsalle
d66e26cb21
updates on start.sh file
...
typo correction on env variable: replacing $USER with $NB_USER since $USER is not set
test if group exists before trying to add a new group
2019-08-09 13:20:16 +02:00
Adrien Delsalle
be4674ffdc
Modify the way to change user uid/gid
...
Workaround of a Docker bad handling of sparse files
Fixes #923
2019-08-09 10:53:10 +02:00
Brett Randall
2d9aa71f69
Added logging of CHOWN_HOME_OPTS and CHOWN_EXTRA_OPTS.
...
Signed-off-by: Brett Randall <javabrett@gmail.com >
2019-03-20 15:10:04 +11:00