From c3858a879ca8f1df8b91e3f4558890910b10fa4a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 26 Mar 2022 21:15:29 +0000 Subject: [PATCH] gnunet: work-around sysupgrade restore missing file ownerships Make sure /etc/gnunet and all its files and sub-directories are owned by gnunet:gnunet. This is somehow necessary as file ownership otherwise doesn't survive sysupgrade. Signed-off-by: Daniel Golle (cherry picked from commit 65f5f850f3cf56c85b1be4aa4fa8cc85e063040b) --- net/gnunet/files/gnunet.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/gnunet/files/gnunet.init b/net/gnunet/files/gnunet.init index 8cf3e1599..5fad67bd4 100755 --- a/net/gnunet/files/gnunet.init +++ b/net/gnunet/files/gnunet.init @@ -26,7 +26,7 @@ prepare_config() { # minimal persistency in /etc/gnunet [ ! -d /etc/gnunet ] && mkdir -m 0750 -p /etc/gnunet - chown gnunet:gnunet /etc/gnunet + chown -R gnunet:gnunet /etc/gnunet # defaults paths for persistent files gnunet-config -c "$CONFIGFILE" -s PATHS -o GNUNET_CONFIG_HOME -V /etc/gnunet