gnunet: work-around sysupgrade restore missing file ownerships
authorDaniel Golle <daniel@makrotopia.org>
Sat, 26 Mar 2022 21:15:29 +0000 (21:15 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 26 Mar 2022 21:29:51 +0000 (21:29 +0000)
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 <daniel@makrotopia.org>
(cherry picked from commit 65f5f850f3cf56c85b1be4aa4fa8cc85e063040b)

net/gnunet/files/gnunet.init

index 8cf3e159966afb06c82c7aa332a260c0b24d6ea6..5fad67bd4d436fed03d45d573f47e297af76e278 100755 (executable)
@@ -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