mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
Update upgrade
This commit is contained in:
parent
42dccb3abb
commit
9723fa3149
1 changed files with 12 additions and 4 deletions
|
@ -71,11 +71,19 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
DEBIAN_FRONTEND=noninteractive apt-mark unhold zabbix-server-mysql zabbix-frontend-php
|
||||
ynh_package_update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y download zabbix-frontend-php
|
||||
ar x *.deb
|
||||
tar xzf control.tar.gz
|
||||
sed -i 's/apache2 | httpd, //' control
|
||||
tar --ignore-failed-read -cvzf control.tar.gz {post,pre}{inst,rm} md5sums control
|
||||
ar rcs zabbix-frontend-php+stretch_all-noapache2.deb debian-binary control.tar.gz data.tar.xz
|
||||
dpkg -i zabbix-frontend-php+stretch_all-noapache2.deb
|
||||
rm -fr zabbix-*.deb
|
||||
apt-get -y --only-upgrade install zabbix-server-mysql zabbix-agent
|
||||
DEBIAN_FRONTEND=noninteractive apt-mark hold zabbix-server-mysql zabbix-frontend-php
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue