File: wordpress.postinst

package info (click to toggle)
wordpress 4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 72,208 kB
  • sloc: php: 130,697; cs: 6,126; sh: 494; xml: 59; makefile: 27
file content (30 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

# To address security bug #363580, but don't change them again and
# again if local admin put something else.
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.2-2; then
 chmod 640 /etc/wordpress/config* >/dev/null 2>&1 || true
 chgrp www-data /etc/wordpress/config* >/dev/null 2>&1 || true
fi

if [ -h /usr/share/tinymce/www/plugins/inlinepopups/editor_plugin.js ] &&
   [ ! -e /usr/share/tinymce/www/plugins/inlinepopups/editor_plugin.js ]; then
    echo "WARNING: You have been affected by http://bugs.debian.org/639733" >&2
    echo "you should reinstall tinymce." >&2
fi
if [ -h /usr/share/javascript/cropper/marqueeVert.gif ] &&
   [ ! -e /usr/share/javascript/cropper/marqueeVert.gif ]; then
    echo "WARNING: You have been affected by http://bugs.debian.org/639733" >&2
    echo "you should reinstall libjs-cropper." >&2
fi

if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
    # Update /var/lib/wordpress/wp-content
    wp-setup --sync-wp-content
fi

#DEBHELPER#

exit 0