Skip to content

Commit ac872be

Browse files
committed
Fix recreation check
1 parent 3dba01d commit ac872be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/custom_init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
set -e
22
sudo microdnf install git
33
sudo -u splunk mkdir -p /opt/splunk/vcs/{git_tmp_backup,git_tmp_restore}
4+
if [ ! -d "/opt/splunk/vcs/backup.git" ]; then
45
sudo -u splunk mkdir -p /opt/splunk/vcs/backup.git
56
sudo -u splunk sh -c "cd /opt/splunk/vcs/backup.git && git init --bare --shared"
6-
if [ ! -d "/opt/splunk/vcs/backup.git" ]; then
77
sudo -u splunk sh -c "cd /opt/splunk/vcs/ && git clone backup.git"
88
sudo -u splunk sh -c "git config --global user.email '[email protected]'"
99
sudo -u splunk sh -c "git config --global user.name 'BackupUser'"

0 commit comments

Comments
 (0)