Skip to content

Instantly share code, notes, and snippets.

@sammso
Last active September 20, 2017 09:00
Show Gist options
  • Save sammso/fba1e7b614541221f44dbdeade00cfeb to your computer and use it in GitHub Desktop.
Save sammso/fba1e7b614541221f44dbdeade00cfeb to your computer and use it in GitHub Desktop.

How to see installed patch version from Liferay Scripting console

Login Liferay 6.2 EE with administrative permissoins and make sure that you have been logged in to main portal instance. Then navigate to Control panel and under Configuration section choose Server Administration. From Server Administration choose Script tag and choose language as choise Groovy.

Copy paste following code script field and click Execute button.

import com.liferay.portal.kernel.util.*;
import com.liferay.portal.kernel.patcher.PatcherUtil;

out.println(StringUtil.merge(PatcherUtil.getInstalledPatches(), StringPool.COMMA_AND_SPACE));

How to see from the liferay log file

Find latest following The following patches are installed sentence from log files. This can be achieved example with grep command like below.

grep "The following patches are installed" <log file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment