Pakfire: Do not make /var/log/pakfire.log writable for "nobody"

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2023-04-24 18:56:07 +00:00
parent 23320dc554
commit f79faeab5a

View File

@@ -1,7 +1,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
@@ -60,7 +60,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
chmod 755 $(DIR_APP)/pakfire
touch /var/log/pakfire.log
chown root.nobody /var/log/pakfire.log
chmod 664 /var/log/pakfire.log
chmod 644 /var/log/pakfire.log
ln -sf ../../var/log/pakfire /opt/pakfire/logs
ln -sf ../../var/cache/pakfire /opt/pakfire/cache
@$(POSTBUILD)