forked from TrueCloudLab/rclone
webgui: Move to new package fs/rc/webgui.
This commit is contained in:
parent
0f7a2f0f3c
commit
5f56611a76
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/rclone/rclone/fs/rc/webgui"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
|
@ -80,7 +81,7 @@ func newServer(opt *rc.Options, mux *http.ServeMux) *Server {
|
|||
fs.Logf(nil, "Serving files from %q", opt.Files)
|
||||
fileHandler = http.FileServer(http.Dir(opt.Files))
|
||||
} else if opt.WebUI {
|
||||
if err := rc.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
|
||||
if err := webgui.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
|
||||
log.Fatalf("Error while fetching the latest release of Web GUI: %v", err)
|
||||
}
|
||||
if opt.NoAuth {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Define the Web GUI helpers
|
||||
|
||||
package rc
|
||||
package webgui
|
||||
|
||||
import (
|
||||
"archive/zip"
|
Loading…
Add table
Reference in a new issue