このコミットが含まれているのは:
守矢諏訪子 2023-06-23 12:43:13 +09:00
コミット cea43b4326
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -21,13 +21,15 @@ func getconf () Config {
prefix := "/usr"
if runtime.GOOS == "freebsd" || runtime.GOOS == "openbsd" {
prefix += "/local"
} else if runtime.GOOS == "netbsd" {
prefix += "/pkg"
}
cnf.configpath = "/etc/hozonsite/config.json"
//_, err = os.Stat(cnf.configpath)
cnf.datapath = prefix + "/share/hozonsite"
if runtime.GOOS == "freebsd" {
if runtime.GOOS == "freebsd" || runtime.GOOS == "netbsd" {
cnf.configpath = prefix + cnf.configpath
}