Skip to content

Instantly share code, notes, and snippets.

@carlwgeorge
Created April 7, 2016 18:12
Show Gist options
  • Save carlwgeorge/3aa33b248154c0444ae139acfd121335 to your computer and use it in GitHub Desktop.
Save carlwgeorge/3aa33b248154c0444ae139acfd121335 to your computer and use it in GitHub Desktop.
breakdown of scriptlet ordering when upgrading from mysql56u-server to mysql57u-server
  1. %pre of mysql57u-server
    • groupadd mysql
    • useradd mysql
  2. installation of mysql57u-server
  3. %post of mysql57u-server
    • chkconfig --add mysqld
  4. %preun of mysql56u-server
    • service mysqld stop
    • chkconfig --del mysqld
  5. removal of mysql56u-server
  6. %postun of mysql56u-server
    • service mysqld condrestart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment