Updated Updating wildduck via git (markdown)

bunyevacz 2018-06-23 09:58:32 +02:00
parent 89cd4ad146
commit b1b7ad2bf9

@ -22,10 +22,6 @@ After installation `.git` directory is separated from the programs' folder:
Precaution must be taken when updating git (`git pull`), as we need both specify the
*working director* and also the *git directory* too.
## Updating wildduck-webmail
## Updating wildduck
## Updating zone-mta
```
@ -46,37 +42,7 @@ Precaution must be taken when updating git (`git pull`), as we need both specify
git --git-dir=/var/opt/zonemta-wildduck.git --work-tree="/opt/zone-mta/plugins/wildduck/" status
```
ut this looks like a zone-mta error to me. And message (indeed) do not reach the inbox.
Also the hook_script seems to not executing right (in original install.sh either).
I'm investigating...
In /opt dir, I have
```
haraka
wildduck
wildduck-webmail
zone-mta
```
I updated zone-mta:
```
(root) $ sudo su deploy
(deploy) $ cd /var/opt/zone-mta.git
(deploy) $ git fetch origin f5f6a80ef6571c24afbb013eb18d74ec6e81ea1e
(deploy) $ git --git-dir=/var/opt/zone-mta.git --work-tree="/opt/zone-mta" checkout -- package.json
(deploy) $ git --git-dir=/var/opt/zone-mta.git --work-tree="/opt/zone-mta" checkout f5f6a80ef6571c24afbb013eb18d74ec6e81ea1e
(deploy) $ cd /opt/zone-mta/
(deploy) $ npm install --production
(deploy) $ exit
(root) $ systemctl restart zone-mta
```
zonemta-wildduck is already at `v1.11.2`:
```
git --git-dir=/var/opt/zonemta-wildduck.git --work-tree="/opt/zone-mta/plugins/wildduck/" status
```
Updated wildduck:
Update **wildduck**:
```
(deploy) $ git --git-dir=/var/opt/wildduck.git --work-tree=/opt/wildduck diff -- emails/00*json
diff --git a/emails/00-example.json b/emails/00-example.json
@ -101,7 +67,7 @@ fatal: reference is not a tree: 538da537ca3cef0bbd714da70085cfd4cc734b49
(userr) $ systemctl restart wildduck
```
Updated **haraka-plugin-wildduck**:
Update **haraka-plugin-wildduck**:
```
(deploy) $ cd haraka-plugin-wildduck.git/
(deploy) $ git --git-dir=/var/opt/haraka-plugin-wildduck.git --work-tree=/opt/haraka/plugins/wildduck checkout 174b29552188295c7eebb422af7837b20a6e61e6
@ -113,17 +79,15 @@ Updated **haraka-plugin-wildduck**:
(userr) $ systemctl restart haraka
```
Checked **Redis**:
Check **Redis**, and flushes all the keys in all databases:
```
$ redis-cli
127.0.0.1:6379> info keyspace
# Keyspace
db3:keys=341,expires=322,avg_ttl=159758700
db5:keys=14,expires=14,avg_ttl=16665217
127.0.0.1:6379> select 3
127.0.0.1:6379> keys "*"
(empty list or set)
127.0.0.1:6379> quit
```
Flushed the Redis database:
```
redis-cli
127.0.0.1:6379> flushall
OK
127.0.0.1:6379> exit
```