diff --git a/fuse-exfat.changes b/fuse-exfat.changes index 7128f11..3425c0f 100644 --- a/fuse-exfat.changes +++ b/fuse-exfat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 4 17:57:51 UTC 2024 - Dominique Leuenberger + +- Do not mess with system config files which we do not own during + post/postun. + ------------------------------------------------------------------- Fri Mar 17 17:17:27 UTC 2023 - Dirk Müller diff --git a/fuse-exfat.spec b/fuse-exfat.spec index 22ed18e..6dd687d 100644 --- a/fuse-exfat.spec +++ b/fuse-exfat.spec @@ -1,7 +1,7 @@ # # spec file for package fuse-exfat # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2013 Sidlovsky, Yaroslav # # All modifications and additions to the file contributed by third parties @@ -52,23 +52,6 @@ make %{?_smp_mflags} %install %make_install -%post -if ! grep -q -e '^exfat$' %{_sysconfdir}/filesystems ; then - sed -i 's/*/exfat\n*/g' %{_sysconfdir}/filesystems - echo "Added 'exfat' to the file %{_sysconfdir}/filesystems" -fi - -if ! grep -q exfat_fuse %{_sysconfdir}/filesystems ; then - sed -i 's/*/exfat_fuse\n*/g' %{_sysconfdir}/filesystems - echo "Added 'exfat_fuse' to the file %{_sysconfdir}/filesystems" -fi - -%postun -if [ "$1" = "0" ]; then - sed -i -e '/exfat_fuse/d' -e '/^exfat$/d' %{_sysconfdir}/filesystems - echo "Deleted 'exfat' and 'exfat_fuse' from the file %{_sysconfdir}/filesystems" -fi - %files %license COPYING %doc ChangeLog README