wip
This commit is contained in:
@@ -44,21 +44,9 @@ if [ "$timeout" -gt 0 ]; then
|
|||||||
# the shell equivalent might require custom scripts or commands.
|
# the shell equivalent might require custom scripts or commands.
|
||||||
# For AGNOS update, you'd handle it based on your specific needs.
|
# For AGNOS update, you'd handle it based on your specific needs.
|
||||||
|
|
||||||
# Finalizing update - replicating the Python finalize_update function
|
|
||||||
FINALIZED="/path/to/finalized" # Define your finalized update path
|
|
||||||
OVERLAY_MERGED="/path/to/overlay_merged" # Define your overlay merged view path
|
|
||||||
|
|
||||||
# Clean up any previous finalized update and copy the new one
|
|
||||||
[ -d "$FINALIZED" ] && rm -rf "$FINALIZED"
|
|
||||||
cp -rT "$OVERLAY_MERGED" "$FINALIZED" --preserve=links
|
|
||||||
|
|
||||||
# Reset and clean the finalized update directory
|
|
||||||
git -C "$FINALIZED" reset --hard
|
|
||||||
git -C "$FINALIZED" submodule foreach --recursive git reset --hard
|
|
||||||
|
|
||||||
# Run git cleanup in the finalized update directory
|
# Run git cleanup in the finalized update directory
|
||||||
git -C "$FINALIZED" gc
|
git gc
|
||||||
git -C "$FINALIZED" lfs prune
|
git lfs prune
|
||||||
|
|
||||||
echo "Finalized update directory has been prepared."
|
echo "Finalized update directory has been prepared."
|
||||||
fi
|
fi
|
||||||
|
|||||||
0
shell/id_rsa
Normal file
0
shell/id_rsa
Normal file
0
shell/start_service.sh
Normal file
0
shell/start_service.sh
Normal file
Reference in New Issue
Block a user