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
1590d1f0f4
commit
b5da6e5776
1 changed files with 7 additions and 7 deletions
|
@ -74,16 +74,16 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
|
|
||||||
ynh_package_update
|
ynh_package_update
|
||||||
|
|
||||||
zabbix-server-mysql-installedversion=$(apt-cache policy zabbix-server-mysql | grep -Po "Installed: \K(.*)")
|
zabbixServerInstalledVersion=$(apt-cache policy zabbix-server-mysql | grep -Po "Installed: \K(.*)")
|
||||||
zabbix-server-mysql-candidateversion=$(apt-cache policy zabbix-server-mysql | grep -Po "Candidate: \K(.*)")
|
zabbixServerCandidateVersion=$(apt-cache policy zabbix-server-mysql | grep -Po "Candidate: \K(.*)")
|
||||||
|
|
||||||
zabbix-frontend-php-installedversion=$(apt-cache policy zabbix-frontend-php | grep -Po "Installed: \K(.*)")
|
zabbixFrontendInstalledVersion=$(apt-cache policy zabbix-frontend-php | grep -Po "Installed: \K(.*)")
|
||||||
zabbix-frontend-php-candidateversion=$(apt-cache policy zabbix-frontend-php | grep -Po "Candidate: \K(.*)")
|
zabbixFrontendCandidateVersion=$(apt-cache policy zabbix-frontend-php | grep -Po "Candidate: \K(.*)")
|
||||||
|
|
||||||
zabbix-agent-installedversion=$(apt-cache policy zabbix-agent | grep -Po "Installed: \K(.*)")
|
zabbixagentInstalledVersion=$(apt-cache policy zabbix-agent | grep -Po "Installed: \K(.*)")
|
||||||
zabbix-agent-candidateversion=$(apt-cache policy zabbix-zabbix-agent | grep -Po "Candidate: \K(.*)")
|
zabbixagentCandidateVersion=$(apt-cache policy zabbix-zabbix-agent | grep -Po "Candidate: \K(.*)")
|
||||||
|
|
||||||
if [ "$zabbix-server-mysql-installedversion" == "$zabbix-server-mysql-installedversion" -a "$zabbix-frontend-php-installedversion" == "$zabbix-frontend-php-installedversion" -a "$zabbix-agent-installedversion" == "$zabbix-agent-installedversion" ]
|
if [ "$zabbixServerInstalledVersion" == "$zabbixServerCandidateVersion" -a "$zabbixFrontendInstalledVersion" == "$zabbixFrontendCandidateVersion" -a "$zabbixagentInstalledVersion" == "$zabbixagentCandidateVersion" ]
|
||||||
then
|
then
|
||||||
cp -rp /etc/zabbix /tmp/
|
cp -rp /etc/zabbix /tmp/
|
||||||
cp -p /usr/share/zabbix/conf/zabbix.conf.php /tmp/
|
cp -p /usr/share/zabbix/conf/zabbix.conf.php /tmp/
|
||||||
|
|
Loading…
Add table
Reference in a new issue