ca857a032a
refactored: Dockefile template refactor: example and move src/ there a simple example new: distros.csv holds table of valid distros, their images and install/update commands refactor: various fixes and adjustment in response to above refactor: help vastly improved and updated
12 lines
No EOL
316 B
Bash
Executable file
12 lines
No EOL
316 B
Bash
Executable file
#!/bin/bash
|
|
vdirs=${1:-$VOLUME_DIRS}
|
|
if [[ $vdirs ]]; then
|
|
echo changing ownership of directories $vdirs
|
|
vgroup=host
|
|
[[ ! $USER = "root" && $USER ]]; vgroup=$USER
|
|
vmap=${HOST_MAP:-host:$vgroup}
|
|
echo to $vmap
|
|
declare usesudo
|
|
[[ ! $USER = "root" ]] && usesudo=sudo
|
|
$usesudo chown -R $vmap $vdirs
|
|
fi |