From d2154f49cea5c73089b480abfc5cb9646ed21c28 Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 5 May 2014 10:55:38 +0000 Subject: #616: Script para generar fichero tar.gz para distribuir OpenGnSys intenta cambiar el propietario de los ficheros a {{{root}}} para evitar fallos en la instalación. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@4264 a21b9725-9963-47de-94b9-378ad31fedc9 --- installer/opengnsys_makecompress.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'installer/opengnsys_makecompress.sh') diff --git a/installer/opengnsys_makecompress.sh b/installer/opengnsys_makecompress.sh index 11a7f9f8..0e9cd48c 100755 --- a/installer/opengnsys_makecompress.sh +++ b/installer/opengnsys_makecompress.sh @@ -17,11 +17,20 @@ SVNREV=$(LANG=C svn info $SVNURL | awk '/Last Changed Rev:/ {print "r"$4}') cd /tmp rm -fr opengnsys svn export $SVNURL opengnsys || exit 1 + +# Asisgnar propietario de los ficheros descargados. +chown -R root.root opengnsys +WARNING=$? + # Parchear datos de revisión del código. perl -pi -e "s/$/ $SVNREV/" opengnsys/doc/VERSION.txt + # Generar fichero comprimido. VERSION=$(awk '{print $2"-"$3}' opengnsys/doc/VERSION.txt) tar cvzf opengnsys-$VERSION.tar.gz opengnsys rm -fr opengnsys + +# Revisar salida. +[ $WARNING != 0 ] && echo "*** WARNING: cannot change owner of files to \"root\" user before compressing." ls -lh $(readlink -e opengnsys-$VERSION.tar.gz) -- cgit v1.2.3-18-g5258