openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d98bebbd50010cd2aa0f0e7529bc4b84a742082d
parent b04262ae5d49faecbf06571fc468cd0363c49fc4
Author: vasyahacker <vasya@magicfreedom.com>
Date:   Thu, 16 Mar 2023 07:45:51 +0400

fixes

Diffstat:
Mcmd/ii-node/main.go | 4++--
Mcmd/ii-node/web.go | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/ii-node/main.go b/cmd/ii-node/main.go @@ -247,8 +247,8 @@ func main() { // http.Redirect(w, r, "//club.hugeping.ru/blog/std.hugeping", http.StatusSeeOther) // }) - http.Handle("hugeping.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) - http.Handle("syscall.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) +// http.Handle("hugeping.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) +// http.Handle("syscall.ru/", http.FileServer(http.Dir("/home/pi/Devel/gemini/www"))) if err := http.ListenAndServe(*listen_opt, nil); err != nil { ii.Error.Printf("Error running web server: %s", err) diff --git a/cmd/ii-node/web.go b/cmd/ii-node/web.go @@ -915,10 +915,10 @@ func WebInit(www *WWW) { tpl_path := "tpl" if _, err := os.Stat(tpl_path); errors.Is(err, os.ErrNotExist) { - fmt.Println("./tpl dir not exist") + fmt.Println("./tpl not found, trying /usr/local/share/ii-go/tpl..") tpl_path = "/usr/local/share/ii-go/tpl" if _, err := os.Stat(tpl_path); errors.Is(err, os.ErrNotExist) { - fmt.Println(tpl_path, "dir not exist") + fmt.Println(tpl_path, "not found") os.Exit(1) } }