Skip to content

Commit ba85174

Browse files
committed
fix(installer): use deisctl-hack fork of makeself
The installer by default does a recursive `chmod` and `chown` of its target directory, which is unwelcome in this case where we drop a single binary into /usr/local/bin.
1 parent 789750d commit ba85174

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package/
22
deisctl/deisctl
3+
makeself/
34

45
# ctags index
56
tags

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ build:
66
installer:
77
rm -rf dist && mkdir -p dist
88
godep go build -a -o dist/deisctl .
9-
makeself.sh --bzip2 --nox11 --target /usr/local/bin dist \
9+
@if [ ! -d makeself ]; then git clone -b deisctl-hack https://github.com/deis/makeself.git; fi
10+
PATH=./makeself:$$PATH makeself.sh --bzip2 --nox11 --target /usr/local/bin dist \
1011
dist/deisctl-`cat deis-version`-`go env GOOS`-`go env GOARCH`.run \
1112
"Deis Control Utility" "/usr/local/bin/deisctl refresh-units"
1213

0 commit comments

Comments
 (0)