diff --git a/debian/changelog b/debian/changelog index 84a09e87..512bdc74 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,7 @@ byobu (4.35) unreleased; urgency=low * usr/bin/byobu-janitor, usr/share/byobu/status/status: LP: #856467 - cleaner fix for ensuring ec2_cost is enabled in ec2 instances; previous fix just enabled it everywhere - * debian/postinst, usr/bin/byobu-janitor: + * debian/postinst, usr/bin/byobu-janitor, usr/bin/byobu-status: - smooth upgrades from older byobu (<= 4.0) * usr/lib/byobu/reboot_required: - fix path diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index f0058095..390bc8ef 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -33,6 +33,14 @@ for i in "${BYOBU_PREFIX}/share/$PKG/status/status" "${BYOBU_PREFIX}/share/$PKG/ [ -r "$i" ] && . "$i" done +# Reload profile, if necessary +if [ -e "/var/run/screen/S-$USER/$PKG.reload-required" ] || [ -e "$BYOBU_RUN_DIR/reload-required" ]; then + if [ "$BYOBU_BACKEND" = "screen" ] && [ -r "$BYOBU_CONFIG_DIR/profile" ]; then + # If the forced janitorial steps succeed, try a profile reload + byobu-janitor --force && screen -X at 0 source "$BYOBU_CONFIG_DIR/profile" >/dev/null 2>&1 + fi +fi + # Get the current timestamp get_now; NOW=${_RET}