From: Carl Baldwin Date: Tue, 25 Oct 2005 22:34:31 +0000 (-0600) Subject: restore.sh should get out of the mounted directory if it is in there X-Git-Tag: release-0.4~63 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%7Blink_activity%7D?a=commitdiff_plain;h=9acb0d35f2baaaf165a0f4e2348e2b99f4ee950f;p=backups%2F.git restore.sh should get out of the mounted directory if it is in there --- diff --git a/scripts/restore-header.sh b/scripts/restore-header.sh index a147c62..2c17e85 100755 --- a/scripts/restore-header.sh +++ b/scripts/restore-header.sh @@ -13,6 +13,7 @@ SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0` # take the archive portion of this file and pipe it to tar tail +$SKIP $0 | tar xzf - -C $rundir -exec $rundir/restore-script.sh ${1+"$@"} +cd $rundir +exec ./restore-script.sh ${1+"$@"} __ARCHIVE_FOLLOWS__