core159: Fix permissions after extraction

Message ID 20210721154500.28431-1-michael.tremer@ipfire.org
State Accepted
Commit d0a93015a9079c0c4b105b5d225b49b4f0ae1777
Headers
Series core159: Fix permissions after extraction |

Commit Message

Michael Tremer July 21, 2021, 3:45 p.m. UTC
  There seems to be a bug in tar (which should be gone by now), but on
affected systems, we might need to reset directory permissions just in
case.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/rootfiles/core/159/update.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/159/update.sh b/config/rootfiles/core/159/update.sh
index 9582c3ece..89ce31111 100644
--- a/config/rootfiles/core/159/update.sh
+++ b/config/rootfiles/core/159/update.sh
@@ -104,6 +104,15 @@  rm -rf /opt/pakfire/db/installed/meta-libstatgrab
 # Extract files
 extract_files
 
+# Fix permissions just in case they broke again
+chmod -v 755 \
+	/usr \
+	/usr/bin \
+	/usr/lib \
+	/usr/sbin \
+	/var \
+	/var/ipfire
+
 # update linker config
 ldconfig