diff options
Diffstat (limited to 'community/elasticsearch/elasticsearch.install')
-rw-r--r-- | community/elasticsearch/elasticsearch.install | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/community/elasticsearch/elasticsearch.install b/community/elasticsearch/elasticsearch.install index 915acfada..1cf320a95 100644 --- a/community/elasticsearch/elasticsearch.install +++ b/community/elasticsearch/elasticsearch.install @@ -1,13 +1,10 @@ post_install() { - getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 elasticsearch &>/dev/null - getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch &>/dev/null - + systemd-sysusers elasticsearch.conf chown -R elasticsearch:elasticsearch /usr/share/elasticsearch } post_upgrade(){ - getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 elasticsearch &>/dev/null - getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch &>/dev/null + systemd-sysusers elasticsearch.conf } post_remove() { |