#!/bin/bash # # Maintenance operations at midnight. # This script called usually by the cron (but indirectly). # # Author: Kovács Zoltán # Kovács Zoltán # License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html) # 2023-06-18 v1.0 # new: forked from the "Smartfront's DOCKER_skeleton" repository. # 2021-08-30 v0.1 Initial release # Where I'm? SCRPATH="$( cd -P "$( "$(which dirname)" "$0" )" && echo "$PWD" )" # Launches the logrotate for service logs. [[ -x "$SCRPATH/rotate_logs" ]] && "$SCRPATH/rotate_logs" >/dev/null 2>&1