Clean template cache during upgradeFromGit
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 28 Jan 2016 16:35:03 +0000 (17:35 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 28 Jan 2016 16:35:03 +0000 (17:35 +0100)
upgradeFromGit.sh

index fcf89de..46e5f96 100755 (executable)
@@ -87,6 +87,16 @@ then
   fi
 fi
 
+msg "\t\t-> Clean template cache : " -en
+rm -f $ROOT_DIR/public_html/tmp/*.tpl.php
+if [ $? -gt 0 ]
+then
+       msg "Error"
+       exit 1
+else
+       msg "Ok"
+fi
+
 msg "-> Verification of git repos state : "
 git status >> $LOG_FILE 2>&1
 if [ "$ETAT" != "" ]