annotate update.sh @ 18:64eee582fec1

add move logs while restart
author Vadim Filimonov <fffilimonov@yandex.ru>
date Wed, 19 Jun 2024 11:45:10 +0300
parents 49461857ed79
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 #!/bin/bash -e
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 . common.sh;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 echo Updating hg
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6 /usr/local/bin/hg pull -u
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 ./stop.sh
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9
12
c560b4e2f056 subdir for repos logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 0
diff changeset
10 mkdir -p logs/repos
13
94b5c7b54978 rm only logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 12
diff changeset
11 rm -f logs/*.log
14
49461857ed79 fix log name for rm
Vadim Filimonov <fffilimonov@yandex.ru>
parents: 13
diff changeset
12 rm -f logs/repos/*_log
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 hg identify >logs/changeset.txt
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 ${ROOTPWD}/luan.sh update_repositories.luan
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17 ./start.sh