Verified Commit d0a9df28 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

hook_postupdate: remove correct file if running on non / root

This uses environment variable ROOT_DIR provided by pkgupdater.
parent df95a6ef
......@@ -3,4 +3,4 @@
# updater-supervisor. But when updater does something to system it's most probable
# that it invalidated current approval request. So this script just removes it
# every time update proceeds.
rm -f /usr/share/updater/approvals
rm -f "$ROOT_DIR/usr/share/updater/approvals"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment