mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 07:08:10 +00:00
Minor makefile fixes
* fix epmd detection on CentOS * get rid of awk dependency
This commit is contained in:
parent
c6e6ee6f3b
commit
46800f0671
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -43,14 +43,14 @@ install: user $(LOGDIR)
|
|||
chmod 777 $(prefix)/mtp_proxy/log/
|
||||
install -D config/mtproto-proxy.service $(SERVICE)
|
||||
# If there is no "epmd" service, install one
|
||||
if [ -z "`systemctl show -p FragmentPath --value epmd`" ]; then \
|
||||
if [ -z "`systemctl show -p FragmentPath epmd | cut -d = -f 2`" ]; then \
|
||||
install -D config/epmd.service $(EPMD_SERVICE); \
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
|
||||
.PHONY: update-sysconfig
|
||||
update-sysconfig: config/prod-sys.config $(prefix)/mtp_proxy
|
||||
REL_VSN=$(shell awk '{print $$2}' $(prefix)/mtp_proxy/releases/start_erl.data) && \
|
||||
REL_VSN=$(shell cut -d " " -f 2 $(prefix)/mtp_proxy/releases/start_erl.data) && \
|
||||
install -m 644 config/prod-sys.config "$(prefix)/mtp_proxy/releases/$${REL_VSN}/sys.config"
|
||||
|
||||
uninstall:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue