change version detection

This commit is contained in:
VirtuBox
2019-08-17 14:01:16 +02:00
parent d772199f26
commit 065e75f9bd
3 changed files with 20 additions and 9 deletions

View File

@@ -10,7 +10,9 @@ class WOVariables():
"""Intialization of core variables"""
# WordOps version
wo_version = "3.9.8"
wo_version = os.popen(
"/bin/grep \"EASY-INSTALL-ENTRY-SCRIPT\" /usr/local/bin/wo "
"| awk -F \"'\" '{print$2}' | awk -F \"==\" '{print$2}'")
# WordOps packages versions
wo_wp_cli = "2.2.0"
wo_adminer = "4.7.2"