We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01d575 commit 5ee1aafCopy full SHA for 5ee1aaf
sql/common.sh
@@ -92,5 +92,11 @@ EOF
92
93
function get_time_last_backup()
94
{
95
- pg_arman -B ${BACKUP_PATH} show | tail -n +4 | head -n 1 | awk '{print($1, $2)}'
+ name_os=`uname`
96
+ if [ "$name_os" == "SunOS" ]
97
+ then
98
+ pg_arman -B ${BACKUP_PATH} show | gtail -n +4 | head -n 1 | awk '{print($1, $2)}'
99
+ else
100
+ pg_arman -B ${BACKUP_PATH} show | tail -n +4 | head -n 1 | awk '{print($1, $2)}'
101
+ fi
102
}
0 commit comments