mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
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 <daniel@makrotopia.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user