fixes on postinstall & backup script
This commit is contained in:
parent
5154afd918
commit
5e6d32699d
3 changed files with 3 additions and 5 deletions
|
@ -12,7 +12,7 @@ function get_backup_date () {
|
|||
}
|
||||
|
||||
function delete_old_backups () {
|
||||
find ${BACKUP_DIR}/*_zammad_*.gz -maxdepth 2 -mindepth 2 -type f -mtime +${HOLD_DAYS} -exec rm -r \;
|
||||
find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm -r \;
|
||||
}
|
||||
|
||||
function get_db_credentials () {
|
||||
|
|
|
@ -17,7 +17,7 @@ delete_old_backups
|
|||
if [ -f ${ZAMMAD_DIR}/${DATABASE_CONFIG} ]; then
|
||||
get_db_credentials
|
||||
else
|
||||
echo "${ZAMMAD_DIR}//${DATABASE_CONFIG} is missing. is zammad configured yet?"
|
||||
echo "${ZAMMAD_DIR}/${DATABASE_CONFIG} is missing. is zammad configured yet?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -228,5 +228,3 @@ function final_message () {
|
|||
fi
|
||||
echo -e "####################################################################################"
|
||||
}
|
||||
|
||||
function
|
Loading…
Reference in a new issue