Fixed error setting data dir, fixed build script

This commit is contained in:
Marc Ole Bulling
2021-04-03 15:01:28 +02:00
parent 1868238003
commit 867029512e
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ go generate
for target in $targets; do
os="$(echo $target | cut -d '/' -f1)"
arch="$(echo $target | cut -d '/' -f2)"
output="release/gokapi-${os}_${arch}"
output=".release/gokapi-${os}_${arch}"
if [ $os = "windows" ]; then
output+='.exe'
fi
@@ -23,5 +23,5 @@ for target in $targets; do
done
echo "----> Build is complete. List of files at $release_path:"
cd release/
cd .release/
ls -l gokapi-*

View File

@@ -121,6 +121,7 @@ func generateDefaultConfig() {
ConfigVersion: currentConfigVersion,
SaltAdmin: Environment.SaltAdmin,
SaltFiles: Environment.SaltFiles,
DataDir: Environment.DataDir,
}
Save()
}