14 lines
668 B
Shell
14 lines
668 B
Shell
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
source_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
subject=${source_root}/scripts/install-jd-guanghu-master-candidate.sh
|
|
bash -n "$subject"
|
|
grep -Fq 'readonly node_id=JD-FD-PRIMARY' "$subject"
|
|
grep -Fq 'grep -Eq "^GRUB_DEFAULT=${linux_entry}$" /etc/default/grub' "$subject"
|
|
grep -Fq "menuentry 'Guanghu OS master · JD repository bridge'" "$subject"
|
|
grep -Fq 'guanghu.master=1 init=${install_path} panic=10' "$subject"
|
|
grep -Fq 'unattended_default=${linux_entry}' "$subject"
|
|
grep -Fq 'linux_rescue=PRESERVED' "$subject"
|
|
grep -Fq '"$install_path" preflight' "$subject"
|
|
echo GUANGHU_MASTER_CANDIDATE_INSTALL_CONTRACT_OK
|