mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
ncp-dist-upgrade: Write dist-upgrade logs to disk
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
96b2c19823
commit
8da59ef850
@ -22,7 +22,7 @@ fi
|
|||||||
|
|
||||||
if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } || [[ "${DEBIAN_FRONTEND:-}" == "noninteractive" ]] || ! [[ -t 0 ]]
|
if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } || [[ "${DEBIAN_FRONTEND:-}" == "noninteractive" ]] || ! [[ -t 0 ]]
|
||||||
then
|
then
|
||||||
"${UPGRADE_CMD[@]}"
|
"${UPGRADE_CMD[@]}" |& tee /var/log/ncp-dist-upgrade.log
|
||||||
else
|
else
|
||||||
tmux list-sessions | grep ncp-distupgrade && {
|
tmux list-sessions | grep ncp-distupgrade && {
|
||||||
echo "Existing distupgrade process detected. Connecting..."
|
echo "Existing distupgrade process detected. Connecting..."
|
||||||
@ -30,6 +30,6 @@ else
|
|||||||
tmux attach -t ncp-distupgrade
|
tmux attach -t ncp-distupgrade
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
tmux new-session -s ncp-distupgrade bash -c "${UPGRADE_CMD[*]}; bash"
|
tmux new-session -s ncp-distupgrade bash -c "${UPGRADE_CMD[*]} |& tee /var/log/ncp-dist-upgrade.log; bash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user