Changeset 2837
- Timestamp:
- 01/07/12 11:27:38 (4 months ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
hosting/UPGRADE (modified) (2 diffs)
-
hosting/conf/conf_script.dist (modified) (1 diff)
-
hosting/scripts/maj_module.sh (modified) (1 diff)
-
hosting/scripts/upgrades.d/up-0.19-2.sh (modified) (1 diff)
-
moteur/clean_tilescache.sh (modified) (4 diffs)
-
site/gshhstiles.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/hosting/UPGRADE
r2836 r2837 9 9 EDIT file ./conf/conf_script 10 10 - change VLM SVNBRANCH to V_0_19 11 - add "export VLMGSHHSURL=http://testing.virtual-loup-de-mer.org/gshhs/" 11 - add "export VLMGSHHSURL=http://testing.virtual-loup-de-mer.org/gshhs" 12 - add "export VLMURL=http://virtual-loup-de-mer.org" 12 13 13 14 RUN … … 34 35 RUN 35 36 ./scripts/upgrade.sh 0.19 2 36 37 INSTALL38 monitoring of health-status39 37 40 38 THE END -
trunk/hosting/conf/conf_script.dist
r2836 r2837 59 59 export VLMGSHHSURL=http://testing.virtual-loup-de-mer.org/gshhs/ 60 60 61 #URL par défaut 62 export VLMURL=http://v-l-m.org 63 61 64 ########################################## 62 65 #Le reste n'est normalement pas à modifier -
trunk/hosting/scripts/maj_module.sh
r2836 r2837 97 97 echo 'OK !' 98 98 fi 99 echo -n "Deleting tiles cache" 100 rm -Rf "$VLMCACHE/gshhstiles/*" 99 101 cd $oldpwd 100 102 ;; -
trunk/hosting/scripts/upgrades.d/up-0.19-2.sh
r2682 r2837 5 5 $VLMRACINE/scripts/maj_module.sh site 6 6 $VLMRACINE/scripts/maj_module.sh jvlm 7 $VLMRACINE/scripts/maj_module.sh clip_gshhs 7 8 8 9 rm $VLMTEMP/cronvlm*.lock -
trunk/moteur/clean_tilescache.sh
r2731 r2837 2 2 3 3 . $VLMRACINE/conf/conf_script || exit 1 4 5 4 TILESCACHEDIR=$VLMCACHE/gshhstiles 6 5 … … 17 16 cd ${TILESCACHEDIR} 18 17 19 emptysum="40d1d7d1e1b9bcaae0d69a5900dabf85"20 21 18 sea=0 22 19 nblinks=0 … … 24 21 mkdir ${FIXEDTILESDIR} 25 22 echo "Creating fixed dir" 26 else 27 if [ -f ${FIXEDTILESDIR}/${SEAFILE} ]; then 28 sea=1 29 nblinks=`ls -l ${FIXEDTILESDIR}/${SEAFILE} | awk '{ print $2}'` 30 fi 23 fi 24 if [ ! -f ${FIXEDTILESDIR}/${SEAFILE} ]; then 25 wget --output-document=${FIXEDTILESDIR}/${SEAFILE} "$VLMURL/gshhstiles.php?z=18&x=173651&y=116199&force=yes" 26 fi 27 28 if [ -f ${FIXEDTILESDIR}/${SEAFILE} ]; then 29 #emptysum="40d1d7d1e1b9bcaae0d69a5900dabf85" 30 emptysum=`md5sum ${FIXEDTILESDIR}/${SEAFILE}| awk '{print $1}'` 31 sea=1 32 nblinks=`ls -l ${FIXEDTILESDIR}/${SEAFILE} | awk '{ print $2}'` 33 else 34 echo "!!! Unable to use sea.png""" 35 exit 2 31 36 fi 32 37 … … 42 47 echo "Is empty!" 43 48 if [ "$sea" -eq "0" ]; then 49 #On recree le fichier sea.png s'il n'existe pas encore. 44 50 mv $tilename ${FIXEDTILESDIR}/${SEAFILE} 45 51 sea=1 -
trunk/site/gshhstiles.php
r2418 r2837 46 46 header("Cache-Control: max-age=864000"); // default 10 days should be tunable. 47 47 readfile($original); 48 exit(0); //To prevent bad spaces appended from php script 48 49 ?> 49 50 51
