set correct owner for SW update procedure
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
@ -15,7 +15,20 @@ if [ ! -f obsw_version.txt ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir update-archive
|
||||
cp eive-obsw-stripped update-archive
|
||||
cp obsw_version.txt update-archive
|
||||
|
||||
cd update-archive
|
||||
|
||||
sudo chown root:root eive-obsw-stripped
|
||||
sudo chown root:root obsw_version.txt
|
||||
|
||||
cmd="tar -cJvf eive-sw-update.tar.xz eive-obsw-stripped obsw_version.txt"
|
||||
echo "Running command ${cmd} to generate compressed SW update archive."
|
||||
eval ${cmd}
|
||||
cp eive-sw-update.tar.xz ..
|
||||
cd ..
|
||||
rm -rf update-archive
|
||||
|
||||
echo "Generated eive-sw-update.tar.xz update archive."
|
||||
|
Reference in New Issue
Block a user