File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 22sudo microdnf install git
33sudo -u splunk mkdir -p /opt/splunk/vcs/{git_tmp_backup,git_tmp_restore}
44sudo -u splunk mkdir -p /opt/splunk/vcs/backup.git
5- echo " dirs"
65sudo -u splunk sh -c " cd /opt/splunk/vcs/backup.git && git init --bare --shared"
7- echo " init "
6+ if [ ! -d " /opt/splunk/vcs/backup.git " ] ; then
87sudo -u splunk sh -c " cd /opt/splunk/vcs/ && git clone backup.git"
98sudo -u splunk sh -c
" git config --global user.email '[email protected] '" 109sudo -u splunk sh -c " git config --global user.name 'BackupUser'"
11- echo " clone"
1210sudo -u splunk sh -c ' cd /opt/splunk/vcs/backup && touch test && git add test && git commit -a -m "init" && git push'
13- echo " file"
14-
11+ fi
1512/usr/sbin/entrypoint.sh start
You can’t perform that action at this time.
0 commit comments