docker-nextcloud-stack/run_elasticsearch.sh
yohan ed1f45e8ed Updated Nextcloud version.
Added reverse proxy configuration.
Added optional Nextcloud objectstore configuration.
Added Nextcloud mime configuration.
Added Nextcloud https configuration.
Fixed elasticsearch getting killed when "stop" or "down" is used: due to a docker bug, the new script stop.sh, must be used instead.
2019-12-04 21:41:54 +01:00

12 lines
476 B
Bash
Executable File

#!/bin/bash
pgrep -af fulltextsearch | grep -qv grep || { su -c "php /var/www/html/occ fulltextsearch:index -q" -s "/bin/bash" www-data; }
pgrep -af fulltextsearch | grep -qv grep || nohup su -c "php /var/www/html/occ fulltextsearch:live -q" -s "/bin/bash" www-data &>/dev/null &
trap "{ echo EXITING; pkill -f -SIGTERM 'fulltextsearch'; }" SIGKILL SIGTERM
while pgrep -af fulltextsearch | grep -qv grep:
do
sleep 1 # This script is not really doing anything.
done