~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to debian/wordpress.postinst

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2012-06-21 20:44:53 UTC
  • Revision ID: package-import@ubuntu.com-20120621204453-exmo4wxf40y7fhe5
Tags: 3.4+dfsg-2
* [2e63535] Merge unused debian/NEWS into debian/wordpress.NEWS so that
  users are correctly informed of the latest changes.
* [e3b7b1c] Improve preinst to also move the
  /usr/share/wordpress/wp-content/uploads directory to its new location in
  /var/lib/wordpress/wp-content/. The package never created this directory
  but many users probably created it and we need to do this to let dpkg
  install the symlink that we put into place.
* [5c0a29b] Add a trigger that watches /usr/share/wordpress/wp-content.
  When activated, it will execute wp-setup --sync-wp-content
  which updates /var/lib/wordpress/wp-content/ with symlinks
  to plugins/themes that have been added and it drops symlinks
  to plugins/themes which have disappeared. (Closes: #677889)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    echo "you should reinstall libjs-cropper." >&2
21
21
fi
22
22
 
 
23
if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
 
24
    # Update /var/lib/wordpress/wp-content
 
25
    wp-setup --sync-wp-content
 
26
fi
 
27
 
23
28
#DEBHELPER#
24
29
 
25
30
exit 0