Changeset 87 for trunk/klask-push-web
- Timestamp:
- Mar 30, 2011, 3:43:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask-push-web
r85 r87 5 5 # 2011/03/30 gabriel - make it generic 6 6 7 TMP='/tmp/klask-push-web'8 9 7 SITE_NAME='' 10 8 REMOTE_SERVER=localhost … … 12 10 REMOTE_FOLDER=/var/www/klask/ 13 11 14 if test -f /etc/klask/push-web.conf12 if [ -f /etc/klask/push-web.conf ] 15 13 then 16 14 . /etc/klask/push-web.conf 17 15 fi 18 16 17 TMP='/tmp/klask-push-web' 19 18 19 20 # local command 20 21 MKDIR=/bin/mkdir 21 22 DATE=/bin/date … … 28 29 RSYNC=/usr/bin/rsync 29 30 31 # remote command 32 DOT=/usr/bin/dot 30 33 31 $MKDIR -p $TMP 32 if test ! -d ${TMP} 34 35 $MKDIR -p ${TMP} 36 if [ ! -d ${TMP} ] 33 37 then 34 38 echo "Error: Folder ${TMP} do not exist !" … … 99 103 <head> 100 104 <link rel="stylesheet" type="text/css" href="style-klask.css" /> 105 <meta http-equiv="refresh" content="3600"> 101 106 <script src="sorttable-klask.js"></script> 102 107 </head> … … 128 133 END 129 134 130 if test ${REMOTE_SERVER} = 'localhost'135 if [ ${REMOTE_SERVER} = 'localhost' ] 131 136 then 132 137 $RSYNC \ … … 139 144 ${REMOTE_FOLDER}/ 140 145 141 (cd ${REMOTE_FOLDER}; dot-T png switch-map.txt > switch-map.png)146 [ -x ${DOT} ] && (cd ${REMOTE_FOLDER}; ${DOT} -T png switch-map.txt > switch-map.png) 142 147 143 148 else … … 152 157 153 158 154 $SSH ${REMOTE_USER}@${REMOTE_SERVER} "(cd ${REMOTE_FOLDER}; dot-T png switch-map.txt > switch-map.png)"159 $SSH ${REMOTE_USER}@${REMOTE_SERVER} "(cd ${REMOTE_FOLDER}; ${DOT} -T png switch-map.txt > switch-map.png)" 155 160 fi
Note: See TracChangeset
for help on using the changeset viewer.