redis: check_redis_instances tolerates absence of instances
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
53af37e055
commit
c8ef7e9b75
|
@ -13,12 +13,13 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
### Added
|
||||
|
||||
* apt: apt_hold_packages: broadcast message with wall, if present
|
||||
* Explicit permissions for systemd overrides
|
||||
* evolinux-base: option to bypass raid-related tasks
|
||||
* Explicit permissions for systemd overrides
|
||||
* generate-ldif: Add support for php-fpm in containers
|
||||
* kvm-host: add missing default value
|
||||
* openvpn: now check that openvpn has been restarted since last certificates renewal
|
||||
* lxc-php: preliminary support for PHP 8.1 container
|
||||
* openvpn: now check that openvpn has been restarted since last certificates renewal
|
||||
* redis: check_redis_instances tolerates absence of instances
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ if systemctl is-enabled -q redis-server; then
|
|||
fi
|
||||
|
||||
# additional instances
|
||||
conf_files=$(ls -1 /etc/redis-*/redis.conf)
|
||||
conf_files=$(ls -1 /etc/redis-*/redis.conf 2> /dev/null)
|
||||
for conf_file in ${conf_files}; do
|
||||
name=$(dirname "${conf_file}" | sed '{s|/etc/redis-||}')
|
||||
if systemctl is-enabled -q "redis-server@${name}.service"; then
|
||||
|
|
Loading…
Reference in a new issue