MACOS: Default path /Users/ instead of /home/ #4

Closed
opened 2024-05-22 23:09:26 +00:00 by Tom van der Laan · 5 comments

Hi,

One thing i noticed on mac it would be helpful if it could use /Users/ instead of /home/ It seems it's not allowed to write to home because if i say it can create it. it just keeps asking me the same question.

Hi, One thing i noticed on mac it would be helpful if it could use /Users/ instead of /home/ It seems it's not allowed to write to home because if i say it can create it. it just keeps asking me the same question.
Author
Member

This is something i had to search and replace in the script.

This is something i had to search and replace in the script.
Owner

We are now going to add this:

OS_NUMBER=0 # Unknown
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
  OS_NUMBER=1
elif [[ "$OSTYPE" == "darwin"* ]]; then
  OS_NUMBER=2
fi

Then based on this we will make changes across the script.

We are now going to add this: ```bash OS_NUMBER=0 # Unknown if [[ "$OSTYPE" == "linux-gnu"* ]]; then OS_NUMBER=1 elif [[ "$OSTYPE" == "darwin"* ]]; then OS_NUMBER=2 fi ``` Then based on this we will make changes across the script.
Owner

I have now pushed an update.... and while it tries to fix a number of issues, there might still be more.

Ideally if you can test this on a system that does not have Docker at all... to see if the script does the right thing.

So v3.6.0 is OS (MACOS) ready.

I will continue bumping this, as you report them :)

I have now pushed an update.... and while it tries to fix a number of issues, there might still be more. Ideally if you can test this on a system that does not have Docker at all... to see if the script does the right thing. So v3.6.0 is OS (MACOS) ready. I will continue bumping this, as you report them :)
Author
Member

ah yeah i can test it on my wife's laptop 😅 I already had docker desktop installed before on my laptop.

ah yeah i can test it on my wife's laptop 😅 I already had docker desktop installed before on my laptop.
Author
Member

This is confirmed to work perfect.

This is confirmed to work perfect.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: octoleo/octojoom#4
No description provided.