]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
core159: Fix permissions after extraction
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Jul 2021 15:45:00 +0000 (15:45 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 23 Jul 2021 06:12:43 +0000 (06:12 +0000)
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>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/159/update.sh

index 9582c3eceeb603cd6326d947bce52193322a50ff..89ce31111a3bfcfae41fea5eefe4ee6015cf2bd6 100644 (file)
@@ -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