This commit is contained in:
Slaviša Arežina 2025-12-09 15:58:13 +01:00 committed by GitHub
parent 3be34bdac8
commit cf7d32548f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 10 deletions

View File

@ -27,21 +27,22 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop zammad systemctl stop zammad
msg_ok "Stopped Service" msg_ok "Stopped Service"
msg_info "Updating ${APP}" msg_info "Updating Zammad"
$STD apt update $STD apt update
$STD apt-mark hold zammad $STD apt-mark hold zammad
$STD apt -y upgrade $STD apt upgrade -y
$STD apt-mark unhold zammad $STD apt-mark unhold zammad
$STD apt -y upgrade $STD apt upgrade -y
msg_ok "Updated ${APP}" msg_ok "Updated Zammad"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start zammad systemctl start zammad
msg_ok "Updated ${APP} LXC" msg_ok "Started Service"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit
} }

View File

@ -11,7 +11,7 @@
"interface_port": null, "interface_port": null,
"documentation": "https://docs.zammad.org/en/latest/", "documentation": "https://docs.zammad.org/en/latest/",
"website": "https://zammad.org/", "website": "https://zammad.org/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/zammad.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zammad.webp",
"config_path": "/etc/nginx/sites-available/zammad.conf", "config_path": "/etc/nginx/sites-available/zammad.conf",
"description": "Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and emails. It is distributed under version 3 of the GNU AFFERO General Public License (GNU AGPLv3).", "description": "Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and emails. It is distributed under version 3 of the GNU AFFERO General Public License (GNU AGPLv3).",
"install_methods": [ "install_methods": [

View File

@ -20,6 +20,8 @@ $STD apt install -y \
apt-transport-https apt-transport-https
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
import_local_ip
msg_info "Setting up Elasticsearch" msg_info "Setting up Elasticsearch"
setup_deb822_repo \ setup_deb822_repo \
"elasticsearch" \ "elasticsearch" \
@ -27,7 +29,7 @@ setup_deb822_repo \
"https://artifacts.elastic.co/packages/7.x/apt" \ "https://artifacts.elastic.co/packages/7.x/apt" \
"stable" \ "stable" \
"main" "main"
$STD apt -y install elasticsearch $STD apt install -y elasticsearch
echo "-Xms2g" >>/etc/elasticsearch/jvm.options echo "-Xms2g" >>/etc/elasticsearch/jvm.options
echo "-Xmx2g" >>/etc/elasticsearch/jvm.options echo "-Xmx2g" >>/etc/elasticsearch/jvm.options
$STD /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment -b $STD /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment -b
@ -42,15 +44,14 @@ setup_deb822_repo \
"https://dl.packager.io/srv/deb/zammad/zammad/stable/debian" \ "https://dl.packager.io/srv/deb/zammad/zammad/stable/debian" \
"$(get_os_info version_id)" \ "$(get_os_info version_id)" \
"main" "main"
$STD apt -y install 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://localhost:9200')"
$STD zammad run rake zammad:searchindex:rebuild $STD zammad run rake zammad:searchindex:rebuild
msg_ok "Installed Zammad" msg_ok "Installed Zammad"
msg_info "Setup Services" msg_info "Setup Services"
cp /opt/zammad/contrib/nginx/zammad.conf /etc/nginx/sites-available/zammad.conf cp /opt/zammad/contrib/nginx/zammad.conf /etc/nginx/sites-available/zammad.conf
IPADDRESS=$(hostname -I | awk '{print $1}') sed -i "s/server_name localhost;/server_name $LOCAL_IP;/g" /etc/nginx/sites-available/zammad.conf
sed -i "s/server_name localhost;/server_name $IPADDRESS;/g" /etc/nginx/sites-available/zammad.conf
$STD systemctl reload nginx $STD systemctl reload nginx
msg_ok "Created Service" msg_ok "Created Service"