From bd3a251f09d25703b4f300d52f6bb000fbbad854 Mon Sep 17 00:00:00 2001
From: Bang Pham Huu <bphamhuu@jacobs-university.de>
Date: Wed, 2 Dec 2015 22:58:09 +0200
Subject: [PATCH] ticket:875 - properties files get unduly modified by
installation procedure (fix creating redundant backup properties if nothing
was added and permission to 644 of properties files)
---
applications/petascope/src/main/resources/log4j.properties | 0
.../petascope/src/main/resources/petascope.properties.in | 0
applications/petascope/update_properties.sh | 9 +++++++++
3 files changed, 9 insertions(+)
mode change 100755 => 100644 applications/petascope/src/main/resources/log4j.properties
mode change 100755 => 100644 applications/petascope/src/main/resources/petascope.properties.in
diff --git a/applications/petascope/src/main/resources/log4j.properties b/applications/petascope/src/main/resources/log4j.properties
old mode 100755
new mode 100644
diff --git a/applications/petascope/src/main/resources/petascope.properties.in b/applications/petascope/src/main/resources/petascope.properties.in
old mode 100755
new mode 100644
diff --git a/applications/petascope/update_properties.sh b/applications/petascope/update_properties.sh
index 7f9f998..020b4aa 100755
a
|
b
|
if [ ! -f "$NEW" ]; then
|
109 | 109 | fi |
110 | 110 | echo -e |
111 | 111 | |
| 112 | #2.3 Check if NEW and OLD file are the same (no need to create a backup and do anything) |
| 113 | logn "Checking the difference between Old and New configuration files..." |
| 114 | cmp --quiet "$NEW" "$OLD" |
| 115 | if [[ $? -eq 0 ]]; then |
| 116 | log "The existing configuration is already up to date." |
| 117 | ok |
| 118 | fi |
| 119 | echo "Done." |
| 120 | |
112 | 121 | # -------------------------------------------- |
113 | 122 | #3 Backup the OLD file by renaming to OLD.bak |
114 | 123 | logn "Backing up your old configuration file to $OLD_BAK... " |