preserve installed apps during launcher updates
This commit is contained in:
@@ -11,24 +11,12 @@ cleanup_managed_tailscale() {
|
||||
rm -f "$marker"
|
||||
}
|
||||
|
||||
cleanup_apps_dir() {
|
||||
apps_dir="$1/.local/share/autonomy-studio/apps"
|
||||
[ -d "$apps_dir" ] || return 0
|
||||
|
||||
find "$apps_dir" -maxdepth 1 -type f \( \
|
||||
-name "*.AppImage" -o \
|
||||
-name "*.AppImage.version" -o \
|
||||
-name "*.download" \
|
||||
\) -delete
|
||||
|
||||
rmdir "$apps_dir" 2>/dev/null || true
|
||||
}
|
||||
case "$1" in
|
||||
upgrade|failed-upgrade|abort-install|abort-upgrade)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
cleanup_managed_tailscale
|
||||
|
||||
for home_dir in /home/*; do
|
||||
[ -d "$home_dir" ] || continue
|
||||
cleanup_apps_dir "$home_dir"
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user