From: Valentin Vidic Date: Thu, 24 Jan 2008 16:35:52 +0000 (+0100) Subject: Run under script for logging purposes. X-Git-Tag: debian/4.0.1~59 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=1df8665eaf2d0877f37d3a9f444a914e00e5c594;p=carnet-upgrade.git Run under script for logging purposes. --- 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