mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Update soup
This commit is contained in:
@@ -130,7 +130,7 @@ update_dockers() {
|
||||
docker pull --disable-content-trust=false docker.io/$IMAGEREPO/$i:$NEWVERSION
|
||||
# Tag it with the new registry destination
|
||||
docker tag $IMAGEREPO/$i $HOSTNAME:5000/$IMAGEREPO/$i:$NEWVERSION
|
||||
docker push $HOSTNAME:5000/$IMAGEREPO/$i:$NEWVERSION
|
||||
docker push $HOSTNAME:5000/$IMAGEREPO/$i:$NEWVERSION
|
||||
done
|
||||
|
||||
}
|
||||
@@ -139,6 +139,7 @@ update_version() {
|
||||
# Update the version to the latest
|
||||
echo "Updating the version file."
|
||||
echo $NEWVERSION > /etc/soversion
|
||||
sed -i 's/$INSTALLEDVERSION/$NEWVERISON/g' /opt/so/saltstack/local/pillar/static.sls
|
||||
}
|
||||
|
||||
upgrade_check() {
|
||||
@@ -177,4 +178,6 @@ clean_dockers
|
||||
update_dockers
|
||||
copy_new_files
|
||||
highstate
|
||||
update_version
|
||||
update_version
|
||||
echo ""
|
||||
echo "Upgrade from $INSTALLEDVERSION to $NEWVERSION complete."
|
||||
|
||||
Reference in New Issue
Block a user