mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-21 19:45:53 +00:00
added buildWAr depedency to buildRpm and buildDeb
This commit is contained in:
parent
c92253ae40
commit
a549f28208
@ -135,6 +135,7 @@ ospackage {
|
||||
|
||||
buildRpm {
|
||||
dependsOn ':build'
|
||||
dependsOn ':HIRS_AttestationCAPortal:bootWar'
|
||||
arch = X86_64
|
||||
// Required apps will be aut installed by dnf if not present
|
||||
requires('java-17-openjdk', '17.0', GREATER | EQUAL)
|
||||
@ -155,6 +156,7 @@ ospackage {
|
||||
|
||||
buildDeb {
|
||||
dependsOn ':build'
|
||||
dependsOn ':HIRS_AttestationCAPortal:bootWar'
|
||||
packageName = 'hirs-attestationca'
|
||||
arch = 'amd64'
|
||||
requires('openjdk-17-jdk', '17.0', GREATER | EQUAL)
|
||||
@ -163,9 +165,9 @@ ospackage {
|
||||
// Install after required packages
|
||||
postInstall 'bash /opt/hirs/aca/scripts/aca/aca_setup.sh -u'
|
||||
postInstall '/opt/hirs/aca/scripts/aca/aca_bootRun.sh -w &'
|
||||
postTrans 'echo "@reboot root /opt/hirs/aca/scripts/aca/aca_bootRun.sh -w" >> /etc/crontab'
|
||||
postTrans 'chmod +x /opt/hirs/aca/scripts/aca/*'
|
||||
postTrans 'if [ -f /opt/hirs/aca/VERSION ]; then rm /opt/hirs/aca/VERSION; fi;'
|
||||
postInstall 'echo "@reboot root /opt/hirs/aca/scripts/aca/aca_bootRun.sh -w" >> /etc/crontab'
|
||||
postInstall 'chmod +x /opt/hirs/aca/scripts/aca/*'
|
||||
postInstall 'if [ -f /opt/hirs/aca/VERSION ]; then rm /opt/hirs/aca/VERSION; fi;'
|
||||
// Wait for ACA to start up before finishing the install
|
||||
postInstall 'bash /opt/hirs/aca/scripts/aca/check_for_aca.sh'
|
||||
}
|
||||
|
@ -70,6 +70,7 @@ start_mysqlsd () {
|
||||
if [ $DB_STATUS -eq 0 ]; then
|
||||
echo "mariadb not running , attempting to restart"
|
||||
systemctl start mariadb >> "$LOG_FILE";
|
||||
sleep 2
|
||||
fi
|
||||
fi # non contanier mysql start
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user