Fix handling of permissions in static installs. (#15042)
Austin S. Hemmelgarn committed
May 11, 2023 at 11:22 UTC
bf51557f9ab96715f9d80515e2153505982a9242
1 file changed
+2
-1
packaging/makeself/install-or-update.sh
+2
-1
@@ -161,7 +161,8 @@ dir_should_be_link etc/netdata ../../usr/lib/netdata/conf.d orig
161
progress "fix permissions"
162
163
run chmod g+rx,o+rx /opt
164
-run chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata
164
+run find /opt/netdata -type d -exec chmod go+rx '{}' \+
165
+run chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata/var
166
167
# -----------------------------------------------------------------------------
168