19 lines
613 B
Bash
Executable File
19 lines
613 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Maintenance operations at midnight.
|
|
# This script called usually by the cron (but indirectly).
|
|
#
|
|
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
|
|
# Kovács Zoltán <kovacsz@marcusconsulting.hu>
|
|
# 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
|