mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 21:31:58 +01:00
Fixed start.sh to apply RT settings once only
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
7f74bad08a
commit
ba4868a068
@ -131,7 +131,14 @@ fix_configs() {
|
|||||||
|
|
||||||
if [[ $RT -eq 1 ]]; then
|
if [[ $RT -eq 1 ]]; then
|
||||||
sed -i "s/define('RT', 0)/define('RT', 1)/" "$SPHINX_CONF"
|
sed -i "s/define('RT', 0)/define('RT', 1)/" "$SPHINX_CONF"
|
||||||
|
if ! grep "'RT'" "$CONFIG_SITE_PHP"; then
|
||||||
echo "\$config['RT'] = 1;" >> "$CONFIG_SITE_PHP"
|
echo "\$config['RT'] = 1;" >> "$CONFIG_SITE_PHP"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep "'SPHINX_MAIN_INDEX'" "$CONFIG_SITE_PHP"; then
|
||||||
|
echo "\$config['SPHINX_MAIN_INDEX'] = 'piler1';" >> "$CONFIG_SITE_PHP"
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i "s%rtindex=.*%rtindex=1%" "$PILER_CONF"
|
sed -i "s%rtindex=.*%rtindex=1%" "$PILER_CONF"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user