diff options
author | ramon <ramongomez@us.es> | 2014-05-05 10:55:38 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-05-05 10:55:38 +0000 |
commit | d2154f49cea5c73089b480abfc5cb9646ed21c28 (patch) | |
tree | 87d9639b31f82885069de57b5bbbb193d3d4a2ba /installer | |
parent | 0e40696cbd9122e6f53a7f880e3d07183aad563e (diff) |
#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.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4264 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_makecompress.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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) |