Add automount path fix
This commit is contained in:
parent
11eec3138e
commit
57f420e0e0
@ -221,6 +221,24 @@ installDockerCompose() {
|
||||
return 0
|
||||
}
|
||||
|
||||
mapAutomountPaths() {
|
||||
local continue
|
||||
|
||||
echo "Are you running windows version 18.03 or later? y/[n]"
|
||||
read continue
|
||||
|
||||
[[ "${continue}" != "" ]] && [[ "${continue}" != "y" ]] && [[ "${continue}" != "Y" ]] && return 0
|
||||
|
||||
cat << EOF | sudo tee /etc/wsl.conf > /dev/null
|
||||
[automount]
|
||||
root = /
|
||||
options = "metadata"
|
||||
EOF
|
||||
|
||||
echo "Please restart your computer, after the restart the volumes will be mounted in /c/, /d/, etc. instead of /mnt/c/, /mnt/d/..."
|
||||
|
||||
}
|
||||
|
||||
initialize() {
|
||||
installDocker
|
||||
[[ $? -ne 0 ]] && echo "Could not install Docker" && return 137
|
||||
@ -237,6 +255,9 @@ initialize() {
|
||||
installDockerCompose
|
||||
[[ $? -ne 0 ]] && echo "Could not install docker compose" && return 137
|
||||
|
||||
mapAutomountPaths
|
||||
[[ $? -ne 0 ]] && echo "Could not map the volume paths properly" && return 137
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user