|
@@ -95,13 +95,31 @@ function set_repo_commit {
|
95
|
95
|
chown -R www-data:www-data $repo_dir
|
96
|
96
|
fi
|
97
|
97
|
if [[ $repo_dir == *"gpgit" ]]; then
|
98
|
|
- cp -u gpgit.pl /usr/bin/gpgit.pl
|
|
98
|
+ if [ ! -f /usr/bin/gpgit.pl ]; then
|
|
99
|
+ cp gpgit.pl /usr/bin/gpgit.pl
|
|
100
|
+ else
|
|
101
|
+ HASH1=$(sha256sum gpgit.pl | awk -F ' ' '{print $1}')
|
|
102
|
+ HASH2=$(sha256sum /usr/bin/gpgit.pl | awk -F ' ' '{print $1}')
|
|
103
|
+ if [[ "$HASH1" != "$HASH2" ]]; then
|
|
104
|
+ cp gpgit.pl /usr/bin/gpgit.pl
|
|
105
|
+ fi
|
|
106
|
+ fi
|
99
|
107
|
fi
|
100
|
108
|
if [[ $repo_dir == *"cleanup-maildir" ]]; then
|
101
|
|
- cp -u $INSTALL_DIR/cleanup-maildir/cleanup-maildir /usr/bin
|
|
109
|
+ if [ ! -f /usr/bin/cleanup-maildir ]; then
|
|
110
|
+ cp $INSTALL_DIR/cleanup-maildir/cleanup-maildir /usr/bin
|
|
111
|
+ else
|
|
112
|
+ HASH1=$(sha256sum $INSTALL_DIR/cleanup-maildir/cleanup-maildir | awk -F ' ' '{print $1}')
|
|
113
|
+ HASH2=$(sha256sum /usr/bin/cleanup-maildir | awk -F ' ' '{print $1}')
|
|
114
|
+ if [[ "$HASH1" != "$HASH2" ]]; then
|
|
115
|
+ cp $INSTALL_DIR/cleanup-maildir/cleanup-maildir /usr/bin
|
|
116
|
+ fi
|
|
117
|
+ fi
|
102
|
118
|
fi
|
103
|
119
|
if [[ $repo_dir == *"nginx_ensite" ]]; then
|
104
|
|
- make install
|
|
120
|
+ if [ ! -f /usr/local/bin/nginx_ensite ]; then
|
|
121
|
+ make install
|
|
122
|
+ fi
|
105
|
123
|
fi
|
106
|
124
|
if [[ $repo_dir == *"inadyn" ]]; then
|
107
|
125
|
./configure
|