Files
Yota Hamada 5a70ff834b upgrade: show restart and install-specific update steps (#3289)
The update flow dead-ended: `dagu upgrade` replaced the binary while
the running server kept the old one, the banner vanished, and a day
later it came back while `dagu upgrade` reported nothing to do. The
banner also always suggested `dagu upgrade`, which fails for Homebrew,
Snap, go install and container installs.

The server now notices when its binary is replaced and shows a restart
notice with the installer service's restart command (launchd, systemd,
WinSW), and `dagu upgrade` prints the same. The update banner shows
the command for the install method, and none for containers.
Kubernetes and Podman now count as containers, and the Windows
permission error suggests Administrator instead of sudo. Restarting
stays manual because it can stop running workflows.
2026-10-22 14:30:41 +09:00

94 lines
3.0 KiB
HTML

<!doctype html>
<html lang="en" translate="no">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/assets/favicon.ico" />
<title>Dagu</title>
<script>
function getConfig() {
return {
apiURL: '/api/v1',
basePath: '',
title: 'Test Environment',
navbarColor: '',
version: 'dev',
tz: '',
tzOffsetInSec: undefined,
maxDashboardPageLimit: 100,
remoteNodes: 'local,dev,dev1',
initialWorkspaces: [],
permissions: {
writeDags: true,
runDags: true,
},
paths: {
configFileUsed: '~/.config/dagu/config.yaml',
baseConfig: '~/.config/dagu/base.yaml',
dagsDir: '~/.config/dagu/dags',
logDir: '~/.local/share/dagu/logs',
suspendFlagsDir: '~/.local/share/dagu/suspend',
adminLogsDir: '~/.local/share/dagu/logs/admin',
dagRunsDir: '~/.local/share/dagu/data/dag-runs',
queueDir: '~/.local/share/dagu/data/queue',
procDir: '~/.local/share/dagu/data/proc',
serviceRegistryDir: '~/.local/share/dagu/data/services',
usersDir: '~/.local/share/dagu/data/users',
gitSyncDir: '~/.local/share/dagu/data/gitsync',
auditLogsDir: '~/.local/share/dagu/logs/admin/audit',
},
authMode: 'builtin',
setupRequired: false,
gitSyncEnabled: true,
agentEnabled: true,
oidcEnabled: false,
oidcButtonLabel: '',
proxyEnabled: false,
proxyButtonLabel: '',
terminalEnabled: true,
updateAvailable: true,
latestVersion: 'v2.0.0',
upgradeCommand: 'dagu upgrade',
restartRequired: false,
restartCommand: '',
license: {
valid: false,
plan: '',
expiry: '',
features: [],
gracePeriod: false,
graceEndsAt: '',
community: true,
source: '',
warningCode: '',
},
};
}
</script>
<script>
// Apply the saved or system theme before the app loads so the page
// does not flash the other theme.
(function () {
var theme;
try {
theme = JSON.parse(localStorage.getItem('user_preferences') || '{}').theme;
} catch (e) {}
var dark =
theme === 'dark' ||
(theme !== 'light' &&
!!window.matchMedia &&
window.matchMedia('(prefers-color-scheme: dark)').matches);
var root = document.documentElement;
root.classList.toggle('dark', dark);
root.style.colorScheme = dark ? 'dark' : 'light';
root.style.backgroundColor = dark ? '#0b0d12' : '#f4f2ed';
})();
</script>
</head>
<body>
<div id="root"></div>
</body>
</html>