Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy/install-mtproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ if [[ ! -x "$source_directory/objs/bin/mtproto-proxy" ]] ||
trap - EXIT
rm -rf "$temporary"
fi
# The build inherits the caller's umask, so the tree can end up root-only.
# mtproxy.service runs as the unprivileged mtproxy user and must be able to
# traverse the directories and execute the built binary.
chmod -R a+rX "$source_directory"

install -d -o root -g mtproxy -m 0750 /etc/mtproxy
secret_temp="$(mktemp /etc/mtproxy/proxy-secret.XXXXXX)"
Expand Down