Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use built-in FILE_MODES routine #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
5 changes: 1 addition & 4 deletions apt-cacher-ng/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ define Package/apt-cacher-ng
TITLE:=A caching proxy for Debian-type packages
MAINTAINER:=Gerad Munsch <gmunsch@unforgivendevelopment.com>
URL:=http://www.unix-ag.uni-kl.de/~bloch/acng/
FILE_MODES:=/etc/apt-cacher-ng/security.conf:apt-cacher-ng:apt-cacher-ng:0600
endef

define Package/apt-cacher-ng/description
Expand Down Expand Up @@ -130,10 +131,6 @@ if [ ! -e "/etc/apt-cacher-ng/.configured" ]; then
# add new user entry
user_exists apt-cacher-ng || user_add apt-cacher-ng $$UID $$GID apt-cacher-ng /srv/apt-cacher-ng

# set file mode on security.conf
chown apt-cacher-ng:apt-cacher-ng /etc/apt-cacher-ng/security.conf
chmod 0600 /etc/apt-cacher-ng/security.conf

# TODO: Perhaps, in the future, we can come up with a better way to pick a Debian/Ubuntu mirror,
# perhaps via a lookup on the current IP address to determine country, or something.
# For now, we just use the generic mirrors, and they're copied from files/ to /etc/apt-cacher-ng/
Expand Down