Skip to content

Commit

Permalink
fix #680
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed May 15, 2020
1 parent 6a4e4a5 commit 0dcbe81
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).

## Next

### Bug Fixes

* **hb-service:** Fix a bug that caused strange behaviour on boot for users with home folders on a remote network share ([#680](https://github.com/oznu/homebridge-config-ui-x/issues/680))

## 4.19.0 (2020-05-14)

### Notable Changes
Expand Down Expand Up @@ -33,7 +39,6 @@ All notable changes to this project will be documented in this file. This projec

* **Plugins:** Fixed a bug that prevented the plugins from loading when there was an bad file in the global node_modules directory ([#657](https://github.com/oznu/homebridge-config-ui-x/issues/657))


## 4.17.1 (2020-04-29)

### Notable Changes
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-config-ui-x",
"displayName": "Homebridge Config UI X",
"version": "4.19.0",
"version": "4.19.1-test.2",
"description": "A web based management, configuration and control platform for Homebridge",
"license": "MIT",
"author": "oznu <dev@oz.nu>",
Expand Down
5 changes: 5 additions & 0 deletions src/bin/hb-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ export class HomebridgeServiceHelper {
* Ensures the storage path defined exists
*/
public async storagePathCheck() {
if (os.platform() === 'darwin' && !await fs.pathExists(path.dirname(this.storagePath))) {
this.logger(`Cannot create Homebridge storage directory, base path does not exist: ${path.dirname(this.storagePath)}`, 'fail');
process.exit(1);
}

if (!await fs.pathExists(this.storagePath)) {
this.logger(`Creating Homebridge directory: ${this.storagePath}`);
await fs.mkdirp(this.storagePath);
Expand Down

0 comments on commit 0dcbe81

Please sign in to comment.