mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix SALTVERSION grep to work with or without quote
This commit is contained in:
@@ -95,7 +95,7 @@ analyze_system() {
|
|||||||
|
|
||||||
desktop_salt_local() {
|
desktop_salt_local() {
|
||||||
|
|
||||||
SALTVERSION=$(egrep 'version: [0-9]{4}' ../salt/salt/master.defaults.yaml | sed 's/^.*version: //')
|
SALTVERSION=$(grep "version:" ../salt/salt/master.defaults.yaml | grep -o "[0-9]\+\.[0-9]\+")
|
||||||
# Install everything using local salt
|
# Install everything using local salt
|
||||||
# Set the repo
|
# Set the repo
|
||||||
securityonion_repo
|
securityonion_repo
|
||||||
@@ -1817,7 +1817,7 @@ securityonion_repo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repo_sync_local() {
|
repo_sync_local() {
|
||||||
SALTVERSION=$(egrep 'version: [0-9]{4}' ../salt/salt/master.defaults.yaml | sed 's/^.*version: //')
|
SALTVERSION=$(grep "version:" ../salt/salt/master.defaults.yaml | grep -o "[0-9]\+\.[0-9]\+")
|
||||||
info "Repo Sync"
|
info "Repo Sync"
|
||||||
if [[ $is_supported ]]; then
|
if [[ $is_supported ]]; then
|
||||||
# Sync the repo from the the SO repo locally.
|
# Sync the repo from the the SO repo locally.
|
||||||
@@ -1878,7 +1878,7 @@ repo_sync_local() {
|
|||||||
|
|
||||||
saltify() {
|
saltify() {
|
||||||
info "Installing Salt"
|
info "Installing Salt"
|
||||||
SALTVERSION=$(egrep 'version: [0-9]{4}' ../salt/salt/master.defaults.yaml | sed 's/^.*version: //')
|
SALTVERSION=$(grep "version:" ../salt/salt/master.defaults.yaml | grep -o "[0-9]\+\.[0-9]\+")
|
||||||
if [[ $is_deb ]]; then
|
if [[ $is_deb ]]; then
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive retry 150 20 "apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" upgrade" >> "$setup_log" 2>&1 || fail_setup
|
DEBIAN_FRONTEND=noninteractive retry 150 20 "apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" upgrade" >> "$setup_log" 2>&1 || fail_setup
|
||||||
|
|||||||
Reference in New Issue
Block a user