This commit is contained in:
Jan Horak 2023-03-02 10:54:51 +01:00 committed by Eike Rathke
parent 4f81225ee3
commit a731d7b3a9

View File

@ -195,7 +195,7 @@ fi
# When Firefox is not running, restore SELinux labels for profile files
# (rhbz#1731371)
if [ $MOZILLA_DOWN -ne 0 ]; then
if [ -x $GETENFORCE_FILE ] && [ `getenforce` != "Disabled" ]; then
if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE_FILE` != "Disabled" ]; then
(/usr/sbin/restorecon -vr ~/.mozilla/firefox/* &)
fi
fi