kiss: remove post-install logging

I want to redo this in a less awful way.
This commit is contained in:
Dylan Araps 2021-07-06 22:16:00 +03:00
parent 422262d629
commit 7f02d9bcad
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

16
kiss
View File

@ -1344,16 +1344,7 @@ pkg_install() {
if [ -x "$sys_db/$pkg_name/post-install" ]; then if [ -x "$sys_db/$pkg_name/post-install" ]; then
log "$pkg_name" "Running post-install hook" log "$pkg_name" "Running post-install hook"
"$sys_db/$pkg_name/post-install"
hook_output=$("$sys_db/$pkg_name/post-install" 2>&1)
[ -z "$hook_output" ] || {
log "$pkg_name" "Running post-install hook" 2>&1
printf '%s\n' "$hook_output"
} |
# 'tee' is used as we would still like to display 'stderr'
tee -a "$log_dir/post-install-$time-$pid" >/dev/null
fi fi
run_hook post-install "$pkg_name" "$sys_db/$pkg_name" run_hook post-install "$pkg_name" "$sys_db/$pkg_name"
@ -1653,11 +1644,6 @@ args() {
"$repo_dir" "$@" "$repo_dir" "$@"
;; ;;
esac esac
if [ -s "$log_dir/post-install-$time-$pid" ]; then
cat "$log_dir/post-install-$time-$pid"
log "Post-install log stored to $log_dir/post-install-$time-$pid"
fi
} }
create_tmp_dirs() { create_tmp_dirs() {