Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-30 15:54:46 +01:00
parent bc3193009f
commit fcee078c0b
2 changed files with 3 additions and 2 deletions

View file

@ -15,6 +15,7 @@ install:
mkdir -p ~/.mumbledj/web
if [ -a ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
cp -u config.gcfg ~/.mumbledj/config/mumbledj.gcfg
cp -u index.html ~/.mumbledj/web/index.html
if [ -d ~/bin ]; then cp -f mumbledj* ~/bin/mumbledj; else sudo cp -f mumbledj* /usr/local/bin/mumbledj; fi;
build:

2
web.go
View file

@ -49,7 +49,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
if uname == nil {
fmt.Fprintf(w, "Invalid Token")
} else {
t, err := template.ParseFiles("index.html")
t, err := template.ParseFiles("~/.mumbledj/web/index.html")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return