OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. #!/bin/bash
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../gconf/gconf.postinstall
  6. # Copyright (C) 2006 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2004 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. umask 022
  18. SCHEMA_DIR=D_sysconfdir/gconf/schemas
  19. export GCONF_CONFIG_SOURCE="`D_bindir/gconftool-2 --get-default-source`"
  20. echo "(Re-)Generating Gnome gconf schemes ..."
  21. while read schema; do
  22. D_bindir/gconftool-2 --makefile-install-rule $schema | \
  23. sed -e '/^[A-Z].*ed schema/d' -e '/[^ ]*/d'
  24. done < <(
  25. if [ -f $SCHEMA_DIR/.stamp ]; then
  26. find $SCHEMA_DIR -newer $SCHEMA_DIR/.stamp -name "*.schemas"
  27. else
  28. find $SCHEMA_DIR -name "*.schemas"
  29. fi)
  30. touch $SCHEMA_DIR/.stamp
  31. echo "Correcting Gnome gconf permissions (installed incorrectly by Gnome) ..."
  32. find D_sysconfdir/gconf -type d | xargs chmod 0755
  33. find D_sysconfdir/gconf -type f | xargs chmod 0644