forked from tomashejatko/galera-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
default:
/usr/sbin/useradd -m --system -s /bin/bash galeraha
install:
/usr/bin/install -o root -g root -m 755 etc/galera-ha.init /etc/init.d/galera-ha
/usr/bin/install -o root -g root -m 644 etc/logrotate.d/galera-ha.logrotate /etc/logrotate.d/galera-ha
/usr/bin/install -o root -g root -m 755 bin/galera-ha /usr/local/bin
/usr/bin/install -o galeraha -g root -m 644 etc/galera-ha.yaml /etc/
/usr/bin/gem install --no-ri --no-rdoc bundler -v '~>1'
/usr/bin/mkdir /run/galera-ha
/usr/bin/chown galeraha /run/galera-ha
/usr/local/bin/bundle install
/usr/sbin/chkconfig --add galera-ha
/usr/sbin/chkconfig galera-ha on
update:
/usr/sbin/service galera-ha stop
/usr/bin/install -o root -g root -m 755 bin/galera-ha /usr/local/bin
/usr/sbin/service galera-ha start
start:
/etc/init.d/galera-ha start
test:
/usr/bin/curl --head localhost:3336/galera-state