Min RK
38710f5819
homedir fixes
...
- don't relocate home if home exists (e.g. mounted volume)
- respect workdir, only cd to new home if we were in /home/jovyan/
2017-09-07 21:34:42 +02:00
Peter Parente
c138070427
Fix working directory problems with custom NB_USER
...
Improve start.sh logging along the way
2017-09-04 21:10:15 -04:00
Min RK
c6c1ce4cb0
use groups for managing write-access to files
...
- any files the user should be able to write should have group `user-permissions` with `g+rwX`
- remove `chown` from start.sh because it is no longer needed
- add `fix-permissions` script for setting the user-writable permissions on a path
- user-permissions group as GID 10000 (is there a reason for it to have a different value?)
- containers can set group with `--group-add user-writable` if they want to run with a different uid/gid
(without -u root -e NB_UID -e NB_GID, which make this unnecessary)
2017-08-26 09:50:56 -04:00
fouding
75742278ce
fix condition-testing syntax bugs
2017-08-16 17:17:09 +08:00
Peter Parente
0c68990e93
Merge pull request #425 from minrk/warn-ignored-config
...
warn about unused config
2017-08-09 16:39:44 -04:00
Min RK
e91827d358
keep accepting 'yes' for GRANT_SUDO
2017-08-09 10:23:01 +02:00
Min RK
489bc324e2
warn about unused config
...
if some env vars are set that aren't used,
complain about it so behaviour is a bit less surprising
2017-08-07 16:07:53 +02:00
Anton Akhmerov
599bb5a3e3
update home folder and username on startup
...
closes #414
2017-08-03 18:08:35 +07:00
Min RK
9e6b4a5345
start.sh: fix check for if we are root
...
UID env is not set when launching as root, use `id -u` check instead
2017-07-21 14:33:44 +02:00
Peter Parente
19b9d93305
Revert "Fix sudoers.d inclusion on debian img ( fix #394 )"
...
This reverts commit 4b3b6697e7
.
2017-06-21 07:07:13 -05:00
Peter Parente
df7a34bebe
Merge pull request #397 from Stibbons/start_logs_pr
...
Add logs to start.sh
2017-06-09 22:50:34 -04:00
Gaetan Semet
7dc0fc86ec
Add logs to start.sh
...
Signed-off-by: Gaetan Semet <gaetan@xeberon.net >
2017-06-08 15:13:24 +02:00
Gaetan Semet
4b3b6697e7
Fix sudoers.d inclusion on debian img ( fix #394 )
...
Signed-off-by: Gaetan Semet <gaetan@xeberon.net >
2017-06-08 15:11:36 +02:00
Peter Parente
45624afa1b
Fix chown of $NB_USER home
2017-06-04 11:09:24 -04:00
Min RK
877a95d162
add JULIA_PKGDIR to chown in start.sh
2017-05-27 18:35:25 -07:00
Stanislav Khotinok
00591d836e
Removed empty spaces
2017-05-18 16:29:51 +02:00
Stanislav Khotinok
77ea89d223
Added possibility to change GID of the NB_USER if NB_GID
2017-05-18 16:06:15 +02:00
Peter Parente
1480d6f88e
Add generic start.sh to base-notebook
...
* Update doc in base-notebook to describe use case
* Rebase start-notebook.sh on it
2016-08-09 16:10:22 -04:00