Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated install script to better work in the GZ.

  • Loading branch information...
commit 4d4581f6cf2b196ee6ddf761a847360b61fbc666 1 parent f0c6902
Heinz N. Gies authored April 15, 2014

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  rel/pkg/install.sh
6  rel/pkg/install.sh
@@ -83,10 +83,10 @@ then
83 83
     else
84 84
         sed "s/^## ip = 127.0.0.1:4200/ip=$conf_admin_ip:4200/" ${CONFFILE}.example > ${CONFFILE}
85 85
     fi
86  
-    md5sum ${CONFFILE} > ${CONFFILE}.md5
  86
+    digest-a md5 ${CONFFILE} > ${CONFFILE}.md5
87 87
 elif [ -f ${CONFFILE}.md5 ]
88 88
 then
89  
-    if md5sum --quiet --strict -c ${CONFFILE}.md5 2&> /dev/null
  89
+    if [ "$(digest -a md5 ${CONFFILE})" = "$(cat ${CONFFILE}.md5)" ]
90 90
     then
91 91
         if [[ "$conf_admin_ip" = "" ]]
92 92
         then
@@ -94,7 +94,7 @@ then
94 94
         else
95 95
             sed "s/^## ip = 127.0.0.1:4200/ip=$conf_admin_ip:4200/" ${CONFFILE}.example > ${CONFFILE}
96 96
         fi
97  
-        md5sum ${CONFFILE} > ${CONFFILE}.md5
  97
+        digest-a md5 ${CONFFILE} > ${CONFFILE}.md5
98 98
     fi
99 99
 else
100 100
     mv ${CONFFILE} ${CONFFILE}.old

0 notes on commit 4d4581f

Please sign in to comment.
Something went wrong with that request. Please try again.