Refresh agent signing keys from repository (Refs #64)
This commit is contained in:
@@ -70,5 +70,7 @@ export function hostApiError(cause: unknown): Response {
|
||||
export function installerCommand(controller: string, token: string): string {
|
||||
const origin = new URL(controller).origin;
|
||||
const quote = (value: string) => "'" + value.replaceAll("'", "'\\''") + "'";
|
||||
return `sudo bash ./electric-cherry-install.sh --controller ${quote(origin)} --token ${quote(token)}`;
|
||||
const installer =
|
||||
'https://gitea.thewrightserver.net/josh/electric-cherry/raw/branch/main/agent/install.sh';
|
||||
return `curl --proto '=https' --tlsv1.2 --fail --silent --show-error --connect-timeout 25 --max-time 120 ${quote(installer)} -o electric-cherry-install.sh && sudo bash ./electric-cherry-install.sh --controller ${quote(origin)} --token ${quote(token)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user