[GRASS-SVN] r65825 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 4 05:40:27 PDT 2015


Author: neteler
Date: 2015-08-04 05:40:26 -0700 (Tue, 04 Aug 2015)
New Revision: 65825

Modified:
   grass-addons/tools/addons/build-index.sh
   grass-addons/tools/addons/grass-addons-index.sh
   grass-addons/tools/addons/grass-addons-publish.sh
Log:
addons scripts: fix permissions on server

Modified: grass-addons/tools/addons/build-index.sh
===================================================================
--- grass-addons/tools/addons/build-index.sh	2015-08-04 06:45:43 UTC (rev 65824)
+++ grass-addons/tools/addons/build-index.sh	2015-08-04 12:40:26 UTC (rev 65825)
@@ -69,4 +69,7 @@
 echo "</body></html>" >> index.html
 rm -f /tmp/a.$TMP /tmp/b.$TMP /tmp/c.$TMP
 
+chgrp -R grass $DEST/grass${MAJOR}${MINOR}/manuals/addons
+chmod -R g+w $DEST/grass${MAJOR}${MINOR}/manuals/addons
+
 exit 0

Modified: grass-addons/tools/addons/grass-addons-index.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-index.sh	2015-08-04 06:45:43 UTC (rev 65824)
+++ grass-addons/tools/addons/grass-addons-index.sh	2015-08-04 12:40:26 UTC (rev 65825)
@@ -92,9 +92,10 @@
     # merge it all
     paste -d' ' /tmp/a.$TMP /tmp/b.$TMP /tmp/c.$TMP >> index.html
 
+    year=`date +%Y`
     echo "</ul>" >> index.html
     echo "<hr>
-© 2013-2015 <a href=\"http://grass.osgeo.org\">GRASS Development Team</a>, GRASS GIS ${major} Addons Reference Manual<br>" >> index.html
+© 2013-${year} <a href=\"http://grass.osgeo.org\">GRASS Development Team</a>, GRASS GIS ${major} Addons Reference Manual<br>" >> index.html
     echo "<i><small>`date -u`</small></i>" >> index.html
     echo "</body></html>" >> index.html
     rm -f /tmp/a.$TMP /tmp/b.$TMP /tmp/c.$TMP

Modified: grass-addons/tools/addons/grass-addons-publish.sh
===================================================================
--- grass-addons/tools/addons/grass-addons-publish.sh	2015-08-04 06:45:43 UTC (rev 65824)
+++ grass-addons/tools/addons/grass-addons-publish.sh	2015-08-04 12:40:26 UTC (rev 65825)
@@ -21,6 +21,8 @@
     tar xzf html.tar.gz
     rm -rf /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
     mv addons /var/www/grass/grass-cms/grass${major}${minor}/manuals/
+    chgrp -R grass /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
+    chmod -R g+w   /var/www/grass/grass-cms/grass${major}${minor}/manuals/addons
     rm logs.tar.gz
     rm html.tar.gz
 }



More information about the grass-commit mailing list