ui: enable experimental tape UI if tape.cfg exists

This commit is contained in:
Dietmar Maurer committed 2021-03-03 09:02:02 +01:00
1 parent 347cde827b
commit 40bf636b47
6 files changed
+16 -10

No files matched your search

+5
View File
@@ -86,6 +86,11 @@ async fn run() -> Result<(), Error> {
let mut config = ApiConfig::new(
buildcfg::JS_DIR, &proxmox_backup::api2::ROUTER, RpcEnvironmentType::PUBLIC)?;
// Enable experimental tape UI if tape.cfg exists
if Path::new("/etc/proxmox-backup/tape.cfg").exists() {
config.enable_tape_ui = true;
}
config.add_alias("novnc", "/usr/share/novnc-pve");
config.add_alias("extjs", "/usr/share/javascript/extjs");
config.add_alias("qrcodejs", "/usr/share/javascript/qrcodejs");