mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
Fixed postinstall.sh script
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
6965a455c4
commit
0e5ada66d1
@ -330,6 +330,8 @@ show_summary() {
|
||||
cat "$CRON_TMP"
|
||||
echo; echo;
|
||||
|
||||
export HOSTNAME SITE_NAME DOCROOT SMTP_DOMAIN MYSQL_HOSTNAME MYSQL_USERNAME MYSQL_PASSWORD MYSQL_DATABASE SMARTHOST SMARTHOST_PORT
|
||||
|
||||
askYN "Correct? [Y/N]" "N"
|
||||
if [[ $response != "yes" ]]; then
|
||||
echo "Aborted."
|
||||
@ -355,6 +357,7 @@ execute_post_install_tasks() {
|
||||
|
||||
echo -n "Writing sphinx configuration... ";
|
||||
sed -e "s%MYSQL_HOSTNAME%${MYSQL_HOSTNAME}%" -e "s%MYSQL_DATABASE%${MYSQL_DATABASE}%" -e "s%MYSQL_USERNAME%${MYSQL_USERNAME}%" -e "s%MYSQL_PASSWORD%${MYSQL_PASSWORD}%" "${SYSCONFDIR}/piler/sphinx.conf.dist" > "$SPHINXCFG"
|
||||
chmod +x "$SPHINXCFG"
|
||||
echo "Done."
|
||||
|
||||
echo -n "Initializing sphinx indices... ";
|
||||
|
Loading…
Reference in New Issue
Block a user