Build and serve signed Linux ARM64 agent releases
This commit is contained in:
+6
-2
@@ -200,7 +200,11 @@ function DeviceEnrollment({ tenantId, auth, customerName }: { tenantId: string;
|
||||
const [copied, setCopied] = useState(false);
|
||||
const [adminScripts, setAdminScripts] = useState(false);
|
||||
const origin = enrollment?.origin;
|
||||
const linuxInstaller = origin && enrollment.platforms.includes('x86_64-unknown-linux-gnu') ? `${origin}/install/linux.sh` : null;
|
||||
const linuxArchitectures = [
|
||||
['x86_64-unknown-linux-gnu', 'x86-64'],
|
||||
['aarch64-unknown-linux-gnu', 'ARM64'],
|
||||
].filter(([target]) => enrollment?.platforms.includes(target)).map(([, label]) => label);
|
||||
const linuxInstaller = origin && linuxArchitectures.length > 0 ? `${origin}/install/linux.sh` : null;
|
||||
const windowsPlatforms = ['x86_64-pc-windows-gnu', 'x86_64-pc-windows-msvc'].filter(platform => enrollment?.platforms.includes(platform));
|
||||
const windowsInstaller = origin && windowsPlatforms.length > 0 ? `${origin}/install/windows.ps1` : null;
|
||||
return <section aria-label="Gerät aufnehmen"><h2>Gerät aufnehmen</h2>
|
||||
@@ -241,7 +245,7 @@ function DeviceEnrollment({ tenantId, auth, customerName }: { tenantId: string;
|
||||
{enrollment && !origin && <p role="status">Für die Geräteaufnahme ist keine HTTPS-Downloadadresse konfiguriert.</p>}
|
||||
{origin && !linuxInstaller && !windowsInstaller && <p role="status">Für diesen Kunden ist derzeit kein Linux- oder Windows-Installer verfügbar.</p>}
|
||||
{linuxInstaller && <>
|
||||
<h4>Linux (x86-64)</h4>
|
||||
<h4>Linux ({linuxArchitectures.join(' und ')})</h4>
|
||||
<p>Installationsskript <a href={linuxInstaller} target="_blank" rel="noopener noreferrer">linux.sh</a></p>
|
||||
<pre>{`curl --fail --show-error --silent '${linuxInstaller}' -o linux.sh && sudo sh linux.sh '${origin}'${adminScripts ? ' --enable-admin-scripts' : ''}`}</pre>
|
||||
</>}
|
||||
|
||||
Reference in New Issue
Block a user