annotate update.sh @ 2:40833a7cd29f

fix restart
author fffilimonov
date Thu, 12 May 2022 06:09:48 -0500
parents dfc36e7ed22c
children c560b4e2f056
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
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 mkdir -p logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 rm -f logs/*
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 hg identify >logs/changeset.txt
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14 ${ROOTPWD}/luan.sh update_repositories.luan
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 ./start.sh