Skip to content

Commit 318514e

Browse files
committed
fix(client): look for unit files in ~/.deisctl before /var/lib/deis/units
1 parent e1f7403 commit 318514e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ installer:
99
@if [ ! -d makeself ]; then git clone -b deisctl-hack https://github.com/deis/makeself.git; fi
1010
PATH=./makeself:$$PATH makeself.sh --bzip2 --nox11 --target /usr/local/bin dist \
1111
dist/deisctl-`cat deis-version`-`go env GOOS`-`go env GOARCH`.run \
12-
"Deis Control Utility" "/usr/local/bin/deisctl refresh-units"
12+
"Deis Control Utility" "deisctl refresh-units"
1313

1414
install:
1515
godep go install -v ./...

client/unit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// path hierarchy for finding systemd service templates
17-
var rootPaths = []string{"/var/lib/deis/units", "~/.deisctl/units"}
17+
var rootPaths = []string{"~/.deisctl/units", "/var/lib/deis/units"}
1818

1919
// Units returns a list of units filtered by target
2020
func (c *FleetClient) Units(target string) (units []string, err error) {

0 commit comments

Comments
 (0)