This commit is contained in:
Your Name
2024-02-13 00:46:23 -06:00
parent 0f7641ea39
commit 412553e741
3 changed files with 2 additions and 14 deletions

View File

@@ -44,21 +44,9 @@ if [ "$timeout" -gt 0 ]; then
# the shell equivalent might require custom scripts or commands.
# 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
git -C "$FINALIZED" gc
git -C "$FINALIZED" lfs prune
git gc
git lfs prune
echo "Finalized update directory has been prepared."
fi

0
shell/id_rsa Normal file
View File

0
shell/start_service.sh Normal file
View File