mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
11 lines
556 B
TypeScript
11 lines
556 B
TypeScript
const INSTALLING_STATUSES: ReadonlySet<string> = new Set(['installing', 'install_failed', 'reinstall_failed']);
|
|||
|
|
|
||
|
|
export const SKIPPED_INSTALL_SCRIPT_MESSAGE =
|
||
|
|
"This server is configured to skip its egg's install script. Reinstalling is not available until that setting is disabled.";
|
||
|
|
|
||
|
|
export const isInstallingStatus = (status: string | null): boolean =>
|
||
|
|
status !== null && INSTALLING_STATUSES.has(status);
|
||
|
|
|
||
|
|
export const canReinstallServer = (status: string | null, skipScripts: boolean): boolean =>
|
||
|
|
!skipScripts || isInstallingStatus(status);
|