From 8952e09c942fb06ff7323fc34e43527e45558182 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@imag.fr> Date: Wed, 12 Apr 2017 16:53:38 +0200 Subject: [PATCH] fixup --- src/scripts/backup_nocloud.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/backup_nocloud.sh b/src/scripts/backup_nocloud.sh index 88c5c9d..19b5fcb 100755 --- a/src/scripts/backup_nocloud.sh +++ b/src/scripts/backup_nocloud.sh @@ -67,9 +67,9 @@ sauvegarde_serveur(){ do_log "Creation de la sauvegarde gitlab" /usr/bin/gitlab-rake $voptminus gitlab:backup:create backup_path=`grep "'backup_path'" /etc/gitlab/gitlab.rb | sed 's/^.*= "\(.*\)"$/\1/'` - if [ -d $backup_path ] + if [ -d "$backup_path" ] then - /bin/ls -dt $backup_path | tail -n +11 | xargsrm -rf + /bin/ls -dt $backup_path/* | tail -n +11 | xargs rm -rf fi fi do_log "Creation de l'archive configuration serveur" -- GitLab