mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-04 09:32:21 +08:00
修复:使用aptss后在/tmp下留下垃圾的问题
This commit is contained in:
parent
c804ae3ab7
commit
4355d8d819
@ -79,12 +79,17 @@ cleanup_aptfast()
|
|||||||
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code
|
[ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code
|
||||||
cleanup_dllist
|
cleanup_dllist
|
||||||
_remove_lock
|
_remove_lock
|
||||||
|
# 添加删除临时目录的逻辑
|
||||||
|
if [ -n "$LISTTEMP" ] && [ -d "$LISTTEMP" ]; then
|
||||||
|
rm -rf "$LISTTEMP"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
exit_cleanup_state()
|
exit_cleanup_state()
|
||||||
{
|
{
|
||||||
|
cleanup_aptfast
|
||||||
exit $CLEANUP_STATE
|
exit $CLEANUP_STATE
|
||||||
}
|
}
|
||||||
|
|
||||||
LCK_FD=99
|
LCK_FD=99
|
||||||
# create the lock file and lock it, die on failure
|
# create the lock file and lock it, die on failure
|
||||||
_create_lock()
|
_create_lock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user