Commit Graph

8 Commits (02da1700e0ff5bff4bb8f72e60f5e4394f13e8b9)

Author SHA1 Message Date
neil 02da1700e0 fix format 2024-12-22 14:19:58 +01:00
neil a9f97e1fe2 fix format 2024-12-22 14:17:33 +01:00
neil d75077c6f9 fix format 2024-12-22 13:36:43 +01:00
Alex 0e1d90dd0c
Properly guess system.properties location 2024-12-20 10:36:45 +01:00
Alex 03e9c612b9
Correct file ownership according to keystore directory 2024-12-20 10:34:51 +01:00
3VAbdAVE d8637b2c0f fixes #3359
Ubiquiti removed keytool (and java) from recent releases of Unifi OS. This moves from keytool to openssl's native pkcs12.

Tested on Unifi Dream Machine which runs Unifi OS and a built-in Unifi controller.

Also added backup of existing files prior to change in case anything goes wrong, and update system configuration with compatible ciphers.
2024-08-15 11:25:23 -04:00
Mike Edmunds bf8c33703c
Fix: Unifi deploy hook support Unifi Cloud Key (#3327)
* fix: unifi deploy hook also update Cloud Key nginx certs

When running on a Unifi Cloud Key device, also deploy to
/etc/ssl/private/cloudkey.{crt,key} and reload nginx. This
makes the new cert available for the Cloud Key management
app running via nginx on port 443 (as well as the port 8443
Unifi Controller app the deploy hook already supported).

Fixes #3326

* Improve settings documentation comments

* Improve Cloud Key pre-flight error messaging

* Fix typo

* Add support for UnifiOS (Cloud Key Gen2)

Since UnifiOS does not use the Java keystore (like a Unifi
Controller or Cloud Key Gen1 deploy), this also reworks
the settings validation and error messaging somewhat.

* PR review fixes

* Detect unsupported Cloud Key java keystore location

* Don't try to restart inactive services

(and remove extra spaces from reload command)

* Clean up error messages and internal variables

* Change to _getdeployconf/_savedeployconf

* Switch from cp to cat to preserve file permissions
2021-02-15 15:01:21 +08:00
Brian Candler 8eab77f3c6 Add deployment script for unifi controller 2017-07-30 12:21:20 +01:00