shared.deb.sh 670 B

123456789101112131415161718
  1. #!/usr/bin/bash
  2. set -ex
  3. apt-get update && apt-get dist-upgrade -y
  4. apt-get install -y systemd systemd-sysv
  5. rm -f /usr/sbin/policy-rc.d
  6. apt-get install -y curl gnupg2
  7. echo "deb [signed-by=/etc/apt/trusted.gpg.d/elasticsearch.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main" | \
  8. tee -a /etc/apt/sources.list.d/elastic-7.x.list > /dev/null
  9. curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | \
  10. gpg --dearmor | tee /etc/apt/trusted.gpg.d/elasticsearch.gpg> /dev/null
  11. apt-get update
  12. apt-get -y install elasticsearch
  13. curl -1sLf https://dl.packager.io/srv/zammad/zammad/key | \
  14. gpg --dearmor -o /usr/share/keyrings/zammad-archive-keyring.gpg