mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-03-13 13:39:02 -05:00
Fixed error setting data dir, fixed build script
This commit is contained in:
@@ -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-*
|
||||
|
||||
@@ -121,6 +121,7 @@ func generateDefaultConfig() {
|
||||
ConfigVersion: currentConfigVersion,
|
||||
SaltAdmin: Environment.SaltAdmin,
|
||||
SaltFiles: Environment.SaltFiles,
|
||||
DataDir: Environment.DataDir,
|
||||
}
|
||||
Save()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user