Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 2017 - Error starting edge service on mac: horizon1/ess-auth/SS… #2434

Merged
merged 1 commit into from
Apr 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions anax-in-container/horizon-container
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,24 @@ start() {
# this is container name specific, like "horizon1" for example.
fssHostSharePath=${fssBasePath}/${DOCKER_NAME}

# clean up everything under the container name directory
# just incase there are left over files by other user
# especially the ones that are not readable by the login user
if [ -d $fssHostSharePath ]; then
rm -Rf $fssHostSharePath 2>/dev/null
if [ $? -ne 0 ]; then
echo "sudo rm -Rf $fssHostSharePath"
sudo rm -Rf $fssHostSharePath
if [[ "$2" != "updating" ]]; then
# clean up everything under the container name directory
# just incase there are left over files by other user
# especially the ones that are not readable by the login user
if [ -d $fssHostSharePath ]; then
rm -Rf $fssHostSharePath 2>/dev/null
if [ $? -ne 0 ]; then
echo "sudo rm -Rf $fssHostSharePath"
sudo rm -Rf $fssHostSharePath
fi
fi
fi

# create fss domain socket path and ess auth path
mkdir -p ${fssHostSharePath}/fss-domain-socket
mkdir -p ${fssHostSharePath}/ess-auth
# create fss domain socket path and ess auth path
mkdir -p ${fssHostSharePath}/fss-domain-socket
mkdir -p ${fssHostSharePath}/ess-auth
else
# updating will keep files inside $fssHostSharePath
fi

# for mac, docker container has the filesystem privilge of the login user instead of root
# even if the `docker run` command was run by a root user.
Expand Down