From 6d5115f0d1fbfdec9680b7ce1a6f58a74a7810e6 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 12 May 2024 18:24:30 +0200 Subject: [PATCH] maintenance.sh: fix weird -1 offset (#2329) --- maintenance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance.sh b/maintenance.sh index bea127a..f7dc944 100644 --- a/maintenance.sh +++ b/maintenance.sh @@ -13,7 +13,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed() # App store chown -R appstore store pushd store >/dev/null - modified_after_service_start="$(find *.py translations/ templates/ assets/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appstore | cut -d= -f2 | cut -d' ' -f2-3)-1")" + modified_after_service_start="$(find *.py translations/ templates/ assets/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appstore | cut -d= -f2 | cut -d' ' -f2-3)")" if [ -n "$modified_after_service_start" ] then pushd assets >/dev/null @@ -29,7 +29,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed() # App generator chown -R appgenerator tools/app_generator pushd tools/app_generator >/dev/null - modified_after_service_start="$(find *.py translations/ templates/ static/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appgenerator | cut -d= -f2 | cut -d' ' -f2-3)-1")" + modified_after_service_start="$(find *.py translations/ templates/ static/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appgenerator | cut -d= -f2 | cut -d' ' -f2-3)")" if [ -n "$modified_after_service_start" ] then pushd assets >/dev/null @@ -44,7 +44,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed() # Autoreadme pushd tools/readme_generator >/dev/null - modified_after_service_start="$(find *.py translations/ templates/ -newermt "$(systemctl show --property=ActiveEnterTimestamp autoreadme | cut -d= -f2 | cut -d' ' -f2-3)-1")" + modified_after_service_start="$(find *.py translations/ templates/ -newermt "$(systemctl show --property=ActiveEnterTimestamp autoreadme | cut -d= -f2 | cut -d' ' -f2-3)")" if [ -n "$modified_after_service_start" ] then systemctl restart autoreadme