mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-21 11:55:53 +02:00
Zammad : bind Elasticsearch to 127.0.0.1 (#15909)
This commit is contained in:
committed by
GitHub
parent
b6a8ca1a3a
commit
fa9377cd45
@@ -32,6 +32,7 @@ sed -i 's/^#\{0,2\} *-Xms[0-9]*g.*/-Xms2g/' /etc/elasticsearch/jvm.options
|
|||||||
sed -i 's/^#\{0,2\} *-Xmx[0-9]*g.*/-Xmx2g/' /etc/elasticsearch/jvm.options
|
sed -i 's/^#\{0,2\} *-Xmx[0-9]*g.*/-Xmx2g/' /etc/elasticsearch/jvm.options
|
||||||
cat <<EOF >/etc/elasticsearch/elasticsearch.yml
|
cat <<EOF >/etc/elasticsearch/elasticsearch.yml
|
||||||
discovery.type: single-node
|
discovery.type: single-node
|
||||||
|
network.host: 127.0.0.1
|
||||||
xpack.security.enabled: false
|
xpack.security.enabled: false
|
||||||
bootstrap.memory_lock: false
|
bootstrap.memory_lock: false
|
||||||
EOF
|
EOF
|
||||||
@@ -40,7 +41,7 @@ systemctl daemon-reload
|
|||||||
systemctl enable -q elasticsearch
|
systemctl enable -q elasticsearch
|
||||||
systemctl restart -q elasticsearch
|
systemctl restart -q elasticsearch
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
if curl -s http://localhost:9200 >/dev/null 2>&1; then
|
if curl -s http://127.0.0.1:9200 >/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 2
|
sleep 2
|
||||||
@@ -55,7 +56,7 @@ setup_deb822_repo \
|
|||||||
"$(get_os_info version_id)" \
|
"$(get_os_info version_id)" \
|
||||||
"main"
|
"main"
|
||||||
$STD apt install -y zammad
|
$STD apt install -y zammad
|
||||||
$STD zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
|
$STD zammad run rails r "Setting.set('es_url', 'http://127.0.0.1:9200')"
|
||||||
$STD zammad run rake zammad:searchindex:rebuild
|
$STD zammad run rake zammad:searchindex:rebuild
|
||||||
msg_ok "Installed Zammad"
|
msg_ok "Installed Zammad"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user