Fix invalid function definition

This commit is contained in:
2020-09-15 14:54:08 +02:00
parent c5c4c3a962
commit 424fde64f8

View File

@@ -128,10 +128,12 @@ step_22() {
exe su ${toolUser} -c "psql -c '\du'"
}
step_24_info() { echo "Clean the year before last year backups of [DATABASE]"; }
step_24_info() {
local DELYEAR=$(($(date +%Y)-2))
echo "Clean all ${DELYEAR} backups of [DATABASE]";
}
step_24_alias() { ALIAS="backupclean"; }
step_24() {
step_6() {
shift
local DELYEAR=$(($(date +%Y)-2))
local dbname=$1