Skip to content

Commit

Permalink
zimbra-health: check logo minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
LobbyLobster committed Dec 16, 2024
1 parent cd8856b commit 08257dc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/monomail/zimbra-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ function check_z-push() {
return
fi

if [[ $(grep "nginx-php-fpm.conf" $FILE) ]]; then
echo "Zimbra Proxy'de Z-Push için gerekli ayar mevcut."
else

if [[ ! $(grep "nginx-php-fpm.conf" $FILE) ]]; then
sed -i '/Microsoft-Server-ActiveSync/,${
/proxy_pass/{
x
Expand Down Expand Up @@ -277,6 +274,7 @@ function check_ssl() {
}

function check_logo() {
echo_status "Logo"
newLogo1="/opt/zimbraLogo/logo300x.png"
newLogo2="/opt/zimbraLogo/logo200x.png"
logoPath="/opt/zimbra/jetty_base/webapps/zimbra/skins/_base/logos"
Expand All @@ -285,9 +283,9 @@ function check_logo() {
nameLogo3="LoginBanner_white.png"
nameLogo4="LoginBanner.png"
if test "$(find "$logoPath/AppBanner_white.png" -mmin +180)"; then
echo "Değiştirme tarihi 180 dakikadan eski"
print_colour "Last change" "older than 180 minutes" "error"
else
echo "Değiştirme tarihi 180 dakikadan yeni"
print_colour "Last change" "newer than 180 minutes"
mkdir -p $logoPath/oldLogo
mv $logoPath/$nameLogo1 $logoPath/oldLogo/$nameLogo1.back
mv $logoPath/$nameLogo3 $logoPath/oldLogo/$nameLogo3.back
Expand Down Expand Up @@ -332,6 +330,7 @@ function main() {
printf '\n'
check_ssl
fi
printf '\n'
check_logo

rm -rf "$TMP_PATH_SCRIPT"/zimbra_session_*_status.txt
Expand Down

0 comments on commit 08257dc

Please sign in to comment.