diff --git a/build/postUn_storage_engine.sh b/build/postUn_storage_engine.sh index 99564f249..40f0c0fde 100644 --- a/build/postUn_storage_engine.sh +++ b/build/postUn_storage_engine.sh @@ -16,7 +16,7 @@ else fi if [ $rpmmode = erase ]; then - if [ ! -z "$(pgrep -x mysqld)" ];then + if [ ! -z "$(pgrep -x mariadbd)" ];then systemctl cat mariadb.service > /dev/null 2>&1 if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then systemctl restart mariadb.service > /dev/null 2>&1 diff --git a/dbcon/mysql/CMakeLists.txt b/dbcon/mysql/CMakeLists.txt index 9f005ed8a..cbe3bf4ec 100644 --- a/dbcon/mysql/CMakeLists.txt +++ b/dbcon/mysql/CMakeLists.txt @@ -48,6 +48,9 @@ else () target_link_libraries(ha_columnstore ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${NETSNMP_LIBRARIES} ${SERVER_BUILD_DIR}/libservices/libmysqlservices.a threadpool) install(TARGETS ha_columnstore DESTINATION ${MARIADB_PLUGINDIR} COMPONENT columnstore-engine) + + # define this dummy target for standalone builds (ie, when mysql_add_plugin doesn't exist) + add_custom_target(columnstore DEPENDS ha_columnstore) endif () install(FILES syscatalog_mysql.sql diff --git a/oam/install_scripts/columnstore-post-install.in b/oam/install_scripts/columnstore-post-install.in index 3e89c4a99..05104ea37 100755 --- a/oam/install_scripts/columnstore-post-install.in +++ b/oam/install_scripts/columnstore-post-install.in @@ -68,7 +68,7 @@ user=`whoami 2>/dev/null` quiet=0 stop_mysqld=0 -if [ -z "$(pgrep -x mysqld)" ];then +if [ -z "$(pgrep -x mariadbd)" ];then # Startup mysqld systemctl cat mariadb.service > /dev/null 2>&1