From 2eba4176c3accb245bfc3f950b45c84dccaddafd Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 17 Oct 2015 05:05:17 -0500 Subject: openrc-devel: add new package to [pcr] --- pcr/openrc-devel/mysql.install | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pcr/openrc-devel/mysql.install (limited to 'pcr/openrc-devel/mysql.install') diff --git a/pcr/openrc-devel/mysql.install b/pcr/openrc-devel/mysql.install new file mode 100644 index 000000000..e0c28d025 --- /dev/null +++ b/pcr/openrc-devel/mysql.install @@ -0,0 +1,23 @@ +_svc="mysql" +_rlvl="default" + +post_install() { + conf1='basedir = /usr' + conf2='pid-file = /var/run/mysqld/mysqld.pid' + conf3='user = mysql' + file="/etc/mysql/my.cnf" + echo " ==> $file requires $conf1" + echo " ==> $file requires $conf2" + echo " ==> $file requires $conf3" + _cmd="rc-update add ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + _cmd="rc-update del ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} -- cgit v1.2.3