* [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/files/
@ 2022-08-15 8:30 Yixun Lan
0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2022-08-15 8:30 UTC (permalink / raw
To: gentoo-commits
commit: 8cab9d61c56949f4c96b07fd3705788a0ac31557
Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 15 08:28:08 2022 +0000
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Aug 15 08:30:04 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cab9d61
net-vpn/headscale: correct permission issue
make sure the path of headscale has right permission
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
net-vpn/headscale/files/config-socket.patch | 6 +++---
net-vpn/headscale/files/headscale.initd | 12 +++++++++---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/net-vpn/headscale/files/config-socket.patch b/net-vpn/headscale/files/config-socket.patch
index 4d6c90e3f0f5..73de6b6578d1 100644
--- a/net-vpn/headscale/files/config-socket.patch
+++ b/net-vpn/headscale/files/config-socket.patch
@@ -1,13 +1,13 @@
diff --git a/config-example.yaml b/config-example.yaml
-index dee25cb..007d8ec 100644
+index d3d155e..a070c22 100644
--- a/config-example.yaml
+++ b/config-example.yaml
-@@ -202,7 +202,7 @@ dns_config:
+@@ -208,7 +208,7 @@ dns_config:
# Unix socket used for the CLI to connect without authentication
# Note: for local development, you probably want to change this to:
# unix_socket: ./headscale.sock
-unix_socket: /var/run/headscale.sock
-+unix_socket: /run/headscale.sock
++unix_socket: /run/headscale/headscale.sock
unix_socket_permission: "0770"
#
# headscale supports experimental OpenID connect support,
diff --git a/net-vpn/headscale/files/headscale.initd b/net-vpn/headscale/files/headscale.initd
index 5a98c0e6cb34..f43b3a55af38 100644
--- a/net-vpn/headscale/files/headscale.initd
+++ b/net-vpn/headscale/files/headscale.initd
@@ -8,6 +8,7 @@ user="${HEADSCALE_USER}:${HEADSCALE_GROUP}"
directory="/var/lib/headscale"
output_log="/var/log/headscale.log"
error_log="/var/log/headscale.log"
+private_key="/var/lib/headscale/private.key"
start_stop_daemon_args="--user \"${user}\" ${HEADSCALE_OPTIONS} --background"
@@ -23,7 +24,12 @@ start_pre() {
fi
checkpath -d -m 700 -o "${user}" /run/headscale /var/lib/headscale
- checkpath -f -m 600 -o "${user}" /var/lib/headscale/db.sqlite /var/log/headscale.log
- checkpath -f -m 600 -o "${user}" /etc/headscale/config.yaml
-}
+ checkpath -f -m 600 -o "${user}" \
+ /var/lib/headscale/db.sqlite \
+ /var/log/headscale.log \
+ /etc/headscale/config.yaml
+ if [[ -f ${private_key} ]]; then
+ checkpath -f -m 600 -o "${user}" ${private_key}
+ fi
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/files/
@ 2022-09-24 13:19 Yixun Lan
0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2022-09-24 13:19 UTC (permalink / raw
To: gentoo-commits
commit: 1b193ada577a47873a711aa1cda4f278ed56a5f2
Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 24 13:17:21 2022 +0000
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sat Sep 24 13:17:21 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b193ada
net-vpn/headscale: fix non-posix standard script
Closes: https://bugs.gentoo.org/872476
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
net-vpn/headscale/files/headscale.initd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-vpn/headscale/files/headscale.initd b/net-vpn/headscale/files/headscale.initd
index f43b3a55af38..9e89ac2ead15 100644
--- a/net-vpn/headscale/files/headscale.initd
+++ b/net-vpn/headscale/files/headscale.initd
@@ -29,7 +29,7 @@ start_pre() {
/var/log/headscale.log \
/etc/headscale/config.yaml
- if [[ -f ${private_key} ]]; then
+ if [ -f ${private_key} ]; then
checkpath -f -m 600 -o "${user}" ${private_key}
fi
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/files/
@ 2023-04-07 20:06 Conrad Kostecki
0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2023-04-07 20:06 UTC (permalink / raw
To: gentoo-commits
commit: 735bfbde487b897bef234fb4085a0e7ce290a313
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Tue Apr 4 16:19:30 2023 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Apr 7 20:05:37 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=735bfbde
net-vpn/headscale: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/30475
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
net-vpn/headscale/files/config-socket.patch | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/net-vpn/headscale/files/config-socket.patch b/net-vpn/headscale/files/config-socket.patch
deleted file mode 100644
index 73de6b6578d1..000000000000
--- a/net-vpn/headscale/files/config-socket.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/config-example.yaml b/config-example.yaml
-index d3d155e..a070c22 100644
---- a/config-example.yaml
-+++ b/config-example.yaml
-@@ -208,7 +208,7 @@ dns_config:
- # Unix socket used for the CLI to connect without authentication
- # Note: for local development, you probably want to change this to:
- # unix_socket: ./headscale.sock
--unix_socket: /var/run/headscale.sock
-+unix_socket: /run/headscale/headscale.sock
- unix_socket_permission: "0770"
- #
- # headscale supports experimental OpenID connect support,
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-07 20:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-15 8:30 [gentoo-commits] repo/gentoo:master commit in: net-vpn/headscale/files/ Yixun Lan
-- strict thread matches above, loose matches on Subject: below --
2022-09-24 13:19 Yixun Lan
2023-04-07 20:06 Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox