File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,14 @@ if [ -f ../in-progress ]; then
119
119
progress=$( cat ../in-progress)
120
120
snapshot=$( echo " $progress " | cut -d ' ' -f 1)
121
121
pid=$( echo " $progress " | cut -d ' ' -f 2)
122
- if ! ps -p $pid | grep ghe-backup ; then
122
+ if ! ps -p " $pid " > /dev/null 2>&1 ; then
123
123
# We can safely remove in-progress, ghe-prune-snapshots
124
124
# will clean up the failed backup.
125
125
unlink ../in-progress
126
126
else
127
- echo " Error: backup process $pid of $GHE_HOSTNAME already in progress in snapshot $snapshot . Aborting." 1>&2
127
+ echo " Error: A backup of $GHE_HOSTNAME may still be running on PID $pid ." 1>&2
128
+ echo " If PID $pid is not a process related to the backup utilities, please remove" 1>&2
129
+ echo " the $GHE_DATA_DIR /in-progress file and try again." 1>&2
128
130
exit 1
129
131
fi
130
132
fi
You can’t perform that action at this time.
0 commit comments