Skip to content

Commit 2ea8c12

Browse files
Merge pull request #100 from containerum/chkit-v3
Chkit v3
2 parents dafddd6 + 941e88c commit 2ea8c12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PUBLIC_KEY_FILE:=pubkey.pem
1212
COMMIT_HASH=$(shell git rev-parse --short HEAD 2>/dev/null)
1313
BUILD_DATE=$(shell date +%FT%T%Z)
1414
LATEST_TAG=$(shell git describe --tags $(shell git rev-list --tags --max-count=1))
15-
#CONTAINERUM_API?=https://api.containerum.io:8082
15+
CONTAINERUM_API?=https://api.containerum.io:8082
1616
VERSION?=$(LATEST_TAG:v%=%)
1717

1818
# make directory and store path to variable

pkg/configdir/config_dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func init() {
4848
file, err := os.OpenFile(pathToConfigFile, os.O_CREATE, 0600)
4949
switch {
5050
case err == nil || os.IsExist(err):
51-
file.Chmod(0600)
51+
os.Chmod(file.Name(), 0600)
5252
file.Close()
5353
default:
5454
panic(ErrUnableToCreateConfigFile.Wrap(err))

pkg/configuration/tokens.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func SaveTokens(ctx *context.Context, tokens model.Tokens) error {
1515
if err != nil {
1616
return err
1717
}
18-
if err := file.Chmod(0600); err != nil {
18+
if err := os.Chmod(file.Name(), 0600); err != nil {
1919
return err
2020
}
2121
encoder := json.NewEncoder(file)

0 commit comments

Comments
 (0)