Skip to content

Conversation

@privacyfr3ak
Copy link
Contributor

@privacyfr3ak privacyfr3ak commented Jul 14, 2025

This Fix keystore ownership in Unifi deployment - unifi.sh on BSD systems

The "find" command behave differently on BSD. This cause the reading of folder and keystore ownership to fail and result in ownership not being changed. So I reverted to original version in this pull request. This seems to work on both BSD and Linux.

@adn77
Copy link
Contributor

adn77 commented Jul 19, 2025

@Neilpang this actually happened here 02da170

I suppose this was due to the failing Shellcheck test. Is there a way to check this before merging?

There are a few people waiting for this, running acme.sh and Unify on OPNsense 😄
opnsense/plugins#4417 (comment)

@Neilpang
Copy link
Member

Neilpang commented Nov 4, 2025

please fix the format errors first

@adn77
Copy link
Contributor

adn77 commented Nov 5, 2025

ShellCheck is suggesting to use find instead of ls because it handles non-alphanumeric characters better...

  • obviously find is not as portable as ls
  • Which non-alphanumeric characters in our certificate store name are we concerned about - there are none

It's probably a great tool, but here ShellCheck is wrong

@privacyfr3ak could you add

# shellcheck disable=SC2012

@Neilpang Neilpang merged commit adb4674 into acmesh-official:dev Nov 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants