1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
mariadb-columnstore-engine/cmapi/postinst.template
mariadb-AlanMologorsky a079a2c944 MCOL-5496: Merge CMAPI code to engine repo.
[add] cmapi code to engine
2023-06-07 10:00:16 +03:00

17 lines
697 B
Bash
Executable File

#!/usr/bin/env bash
# only for postinstall in CentOS
if [ -f ${CMAPI_CONF_FILEPATH}.rpmsave ]; then
echo "warning: found previously saved configuration file ${CMAPI_CONF_FILEPATH}.rpmsave"
mv ${CMAPI_CONF_FILEPATH} ${CMAPI_CONF_FILEPATH}.rpmnew
echo "warning: newly installed configuration file ${CMAPI_CONF_FILEPATH} saved as ${CMAPI_CONF_FILEPATH}.rpmnew"
mv ${CMAPI_CONF_FILEPATH}.rpmsave ${CMAPI_CONF_FILEPATH}
echo "warning: previously saved configuration file ${CMAPI_CONF_FILEPATH}.rpmsave applied as current config file ${CMAPI_CONF_FILEPATH}"
fi
systemctl enable ${SYSTEMD_UNIT_NAME}
systemctl start ${SYSTEMD_UNIT_NAME}
systemctl mask ${SYSTEMD_ENGINE_UNIT_NAME}