Procházet zdrojové kódy

wip package deployment scripts

* ignore site specific directory
* if it's a legacy install, make sure to update the version and checksum
  so we don't keep trying to install
Abram Connelly před 6 roky
rodič
revize
85b06376d7
2 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 1 0
      .gitignore
  2. 4 0
      busunit/scripts/apply_update_legacy.sh

+ 1 - 0
.gitignore

@@ -39,3 +39,4 @@ libtool
 *.gp
 *.ngc
 
+server/diu_packager/site

+ 4 - 0
busunit/scripts/apply_update_legacy.sh

@@ -43,6 +43,9 @@ local_checksum=`md5sum $update_file | cut -d' ' -f1`
 #
 if [[ "$update_checksum" == "$local_checksum" ]] ; then
 
+  echo "$local_checksum" > /home/bus/config/$update_file.checksum
+  echo "$file_version" > /home/bus/config/$update_file.version
+
   tar -zxf $update_file
 
   if [[ ! -d ./mnt/data2/config ]] ; then
@@ -84,6 +87,7 @@ if [[ "$update_checksum" == "$local_checksum" ]] ; then
     cp -f ./mnt/data2/config/rfid_patterns.txt /home/bus/config/rfid_patterns.txt
   fi
 
+
   exit 0
 fi