forked from kiss-community/kiss
kiss: remove post-install logging
I want to redo this in a less awful way.
This commit is contained in:
parent
422262d629
commit
7f02d9bcad
16
kiss
16
kiss
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user