mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
remove /etc/hosts manipulation
This commit is contained in:
parent
80b2e5c9d1
commit
e90395ba3c
@ -19,23 +19,6 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade
|
|||||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install ssl-cert nginx-full postgresql zammad
|
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install ssl-cert nginx-full postgresql zammad
|
||||||
|
|
||||||
|
|
||||||
cat << EOF >>/etc/hosts
|
|
||||||
0.0.0.0 image.zammad.com
|
|
||||||
0.0.0.0 images.zammad.com
|
|
||||||
0.0.0.0 geo.zammad.com
|
|
||||||
0.0.0.0 www.zammad.com
|
|
||||||
0.0.0.0 www.zammad.org
|
|
||||||
0.0.0.0 www.zammad.net
|
|
||||||
0.0.0.0 www.zammad.de
|
|
||||||
0.0.0.0 zammad.com
|
|
||||||
0.0.0.0 zammad.org
|
|
||||||
0.0.0.0 zammad.net
|
|
||||||
0.0.0.0 zammad.de
|
|
||||||
#
|
|
||||||
127.0.0.1 elasticsearch
|
|
||||||
0.0.0.0 geoip.elastic.co
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Java set startup environment
|
# Java set startup environment
|
||||||
mkdir -p /etc/elasticsearch/jvm.options.d
|
mkdir -p /etc/elasticsearch/jvm.options.d
|
||||||
cat << EOF >>/etc/elasticsearch/jvm.options.d/msmx-size.options
|
cat << EOF >>/etc/elasticsearch/jvm.options.d/msmx-size.options
|
||||||
@ -165,8 +148,8 @@ systemctl enable elasticsearch.service
|
|||||||
systemctl restart nginx elasticsearch.service
|
systemctl restart nginx elasticsearch.service
|
||||||
|
|
||||||
# Elasticsearch conntact to Zammad
|
# Elasticsearch conntact to Zammad
|
||||||
zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
|
zammad run rails r "Setting.set('es_url', 'http://127.0.0.1:9200')"
|
||||||
zammad run rails r "Setting.set('es_index', Socket.gethostname.downcase + '_zammad')"
|
zammad run rails r "Setting.set('es_index', Socket.gethostname.downcase + '_zammad')"
|
||||||
zammad run rails r "User.find_by(email: 'nicole.braun@zammad.org').destroy"
|
zammad run rails r "User.find_by(email: 'nicole.braun@zammad.org').destroy"
|
||||||
systemctl restart elasticsearch.service
|
systemctl restart elasticsearch.service
|
||||||
zammad run rake searchindex:rebuild
|
zammad run rake zammad:searchindex:rebuild[$(nproc)]
|
Loading…
Reference in New Issue
Block a user