View | Details | Raw Unified | Return to bug 196432 | Differences between
and this patch

Collapse All | Expand All

(-)Keywords/sample.ucl (-4 / +4 lines)
Lines 21-29 post-install: <<EOD Link Here
21
  *) sample_file="%D/%@" ;;
21
  *) sample_file="%D/%@" ;;
22
  esac
22
  esac
23
  target_file="${sample_file%.sample}"
23
  target_file="${sample_file%.sample}"
24
  if ! [ -f "${target_file}" ]; then
24
  if ! [ -e "${target_file}" ]; then
25
    /bin/cp -p "${sample_file}" "${target_file}" && \
25
    /bin/cp -Rp "${sample_file}" "${target_file}" && \
26
      /bin/chmod u+w "${target_file}"
26
      /bin/chmod -h u+w "${target_file}"
27
  fi
27
  fi
28
EOD
28
EOD
29
pre-deinstall: <<EOD
29
pre-deinstall: <<EOD
Lines 32-38 pre-deinstall: <<EOD Link Here
32
  *) sample_file="%D/%@" ;;
32
  *) sample_file="%D/%@" ;;
33
  esac
33
  esac
34
  target_file="${sample_file%.sample}"
34
  target_file="${sample_file%.sample}"
35
  if cmp -s "${target_file}" "${sample_file}"; then
35
  if cmp -hs "${target_file}" "${sample_file}"; then
36
    rm -f "${target_file}"
36
    rm -f "${target_file}"
37
  else
37
  else
38
    echo "You may need to manually remove ${target_file} if it's no longer needed."
38
    echo "You may need to manually remove ${target_file} if it's no longer needed."

Return to bug 196432