Skip to content
Snippets Groups Projects
Unverified Commit 8952e09c authored by David Beniamine's avatar David Beniamine
Browse files

fixup

parent 85d55313
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment