File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,12 @@ exec > >(tee -a "$log_file") 2>&1
41
41
42
42
log " Script starting"
43
43
log " Running as user: $USER "
44
- log " On branch: $( $git_cmd branch -v) "
44
+ log " On branch before git pull : $( $git_cmd branch -v) "
45
45
log " Docker compose file: $docker_compose_file_path "
46
46
47
+ log " docker ps before:"
48
+ $docker_cmd ps
49
+
47
50
command=" \
48
51
$git_cmd reset --hard && \
49
52
$git_cmd pull --force && \
@@ -58,10 +61,12 @@ echo "$command" | awk 'BEGIN{FS="&&"; OFS="&& \n"} {$1=$1} 1'
58
61
# Run the command
59
62
bash -c " $command " >> " $log_file " 2>&1
60
63
64
+ log " On branch after git pull: $( $git_cmd branch -v) "
65
+
61
66
log " Sleeping $docker_up_sleep_seconds seconds to give Docker containers time to start and stabilize"
62
67
sleep $docker_up_sleep_seconds
63
68
64
- log " docker ps:"
69
+ log " docker ps after :"
65
70
$docker_cmd ps
66
71
67
72
log " Script finishing"
You can’t perform that action at this time.
0 commit comments