#!/bin/sh

set -e

runPosInst() {
## <asset scriplets/post>


set -e

USER=cpanelphpmyadmin
GROUP=$USER
GHOST="/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php"

if [ -e $GHOST ]; then
    chmod 644 $GHOST
    chown $USER:$GROUP $GHOST
fi

if [ "x$CPANEL_BASE_INSTALL" = "x" ]; then
    /usr/local/cpanel/bin/update_phpmyadmin_config
fi

## </asset>

}

case "$1" in
  configure)
    runPosInst;
  ;;
esac

exit 0