Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/subgraph-oz/commit/ed1df1a76181f59c7d6d9fd3e9a915f636dfcce1?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed passing display number 0

master
xSmurf 10 years ago
parent 41e8e4f9e2
commit ed1df1a761

@ -75,9 +75,7 @@ func createInitCommand(name, chroot string, uid uint32, display int, stn *networ
cmd.Env = append(cmd.Env, "INIT_GATEWAY=" + stn.Gateway.String() + "/" + stn.Class) cmd.Env = append(cmd.Env, "INIT_GATEWAY=" + stn.Gateway.String() + "/" + stn.Class)
} }
if display > 0 {
cmd.Env = append(cmd.Env, fmt.Sprintf("INIT_DISPLAY=%d", display)) cmd.Env = append(cmd.Env, fmt.Sprintf("INIT_DISPLAY=%d", display))
}
return cmd return cmd
} }

@ -162,10 +162,10 @@ func (st *initState) runInit() {
oz.ReapChildProcs(st.log, st.handleChildExit) oz.ReapChildProcs(st.log, st.handleChildExit)
if st.profile.XServer.Enabled { if st.profile.XServer.Enabled {
if st.display == 0 { //if st.display == 0 {
st.log.Error("Cannot start xpra because no display number was passed to oz-init") // st.log.Error("Cannot start xpra because no display number was passed to oz-init")
os.Exit(1) // os.Exit(1)
} //}
st.xpraReady.Add(1) st.xpraReady.Add(1)
st.startXpraServer() st.startXpraServer()
} }

Loading…
Cancel
Save