sdsphinx/env.sh
Michael RICOIS fb3596f696 Correction
2015-11-06 08:21:44 +00:00

13 lines
435 B
Bash

#!/bin/bash
ENV_MYSQLHOST=192.168.3.28
ENV_MYSQLUSER=sphinx
ENV_MYSQLPASS=indexer
sed -i -e s/ENV_MYSQLHOST/"$ENV_MYSQLHOST"/g sphinx.*.conf
sed -i -e s/ENV_MYSQLUSER/"$ENV_MYSQLUSER"/g sphinx.*.conf
sed -i -e s/ENV_MYSQLPASS/"$ENV_MYSQLPASS"/g sphinx.*.conf
sed -i -e s/ENV_MYSQLHOST/"$ENV_MYSQLHOST"/g indexer/*.sh
sed -i -e s/ENV_MYSQLUSER/"$ENV_MYSQLUSER"/g indexer/*.sh
sed -i -e s/ENV_MYSQLPASS/"$ENV_MYSQLPASS"/g indexer/*.sh