From 1df8665eaf2d0877f37d3a9f444a914e00e5c594 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 24 Jan 2008 17:35:52 +0100 Subject: [PATCH] Run under script for logging purposes. --- src/cn-upgrade | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cn-upgrade b/src/cn-upgrade index 40aa767..c5f5e40 100755 --- a/src/cn-upgrade +++ b/src/cn-upgrade @@ -2,7 +2,15 @@ # last update: 2005-01-07 # Zoran 'jelly' Dzelajlija # Ivan 'ico' Rako -version="carnet-upgrade v2.1.4" +version="carnet-upgrade v4.0.0" + +# restart upgrade under script for logging purposes +if [ "$1" == "--no-script" ]; then + shift +elif [ -x /usr/bin/script ]; then + exec /usr/bin/script -a -c "$0 --no-script $@" \ + /var/log/carnet-upgrade.typescript +fi set -e -- 1.7.10.4