Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
5fd3987e
Unverified
Commit
5fd3987e
authored
Sep 24, 2018
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix improper use of DESTDIR convention
parent
41dd401c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Makefile
Makefile
+10
-8
No files found.
Makefile
View file @
5fd3987e
DESTDIR
:=
/opt
DESTDIR
:=
/
prefix
:=
$(DESTDIR)
/opt
REBAR3
:=
./rebar3
SERVICE
:=
/etc/systemd/system/mtproto-proxy.service
LOGDIR
:=
/var/log/mtproto-proxy
SERVICE
:=
$(DESTDIR)
/etc/systemd/system/mtproto-proxy.service
LOGDIR
:=
$(DESTDIR)
/var/log/mtproto-proxy
USER
:=
mtproto-proxy
...
...
@@ -22,14 +23,15 @@ $(LOGDIR):
install
:
$(LOGDIR)
sudo
useradd
-r
$(USER)
||
true
cp
-n
-r
_build/prod/rel/mtp_proxy
$(DESTDIR)
mkdir
-p
$(DESTDIR)
/mtp_proxy/log
chmod
777
$(DESTDIR)
/mtp_proxy/log
cp
-n
config/mtproto-proxy.service
$(SERVICE)
mkdir
-p
$(prefix)
/mtp_proxy
cp
-n
-r
_build/prod/rel/mtp_proxy
$(prefix)
/mtp_proxy
mkdir
-p
$(prefix)
/mtp_proxy/log
chmod
777
$(prefix)
/mtp_proxy/log
install
-D
config/mtproto-proxy.service
$(SERVICE)
systemctl daemon-reload
uninstall
:
# TODO: ensure service is stopped
rm
$(SERVICE)
rm
-r
$(
DESTDIR
)/mtp_proxy
rm
-r
$(
prefix
)/mtp_proxy
systemctl
daemon-reload
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment