Accepting request 1112155 from home:jsegitz:branches:security:SELinux_2
- Modified update.sh to require first parameter "full" to also update container-selinux. For maintenance updates you usually don't want it to be updated OBS-URL: https://build.opensuse.org/request/show/1112155 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=191
This commit is contained in:
parent
a975c36105
commit
fe4723a538
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 19 07:57:02 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
|
||||
|
||||
- Modified update.sh to require first parameter "full" to also
|
||||
update container-selinux. For maintenance updates you usually
|
||||
don't want it to be updated
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 28 14:49:04 UTC 2023 - filippo.bonazzi@suse.com
|
||||
|
||||
|
15
update.sh
15
update.sh
@ -2,18 +2,20 @@
|
||||
|
||||
date=$(date '+%Y%m%d')
|
||||
base_name_pattern='selinux-policy-*.tar.xz'
|
||||
|
||||
echo Update to $date
|
||||
|
||||
old_tar_file=$(ls -1 $base_name_pattern)
|
||||
|
||||
osc service manualrun
|
||||
|
||||
rm -rf container-selinux
|
||||
git clone --depth 1 https://github.com/containers/container-selinux.git
|
||||
rm -f container.*
|
||||
mv container-selinux/container.* .
|
||||
rm -rf container-selinux
|
||||
if [ "$1" = "full" ]; then
|
||||
echo doing full update including container-selinux
|
||||
rm -rf container-selinux
|
||||
git clone --depth 1 https://github.com/containers/container-selinux.git
|
||||
rm -f container.*
|
||||
mv container-selinux/container.* .
|
||||
rm -rf container-selinux
|
||||
fi
|
||||
|
||||
# delete old files. Might need a better sanity check
|
||||
tar_cnt=$(ls -1 $base_name_pattern | wc -l)
|
||||
@ -24,4 +26,3 @@ if [ $tar_cnt -gt 1 ]; then
|
||||
fi
|
||||
|
||||
osc status
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user