Skip to content

Commit

Permalink
change deprecated -a flag to -e flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Dec 9, 2024
1 parent a0ad6db commit 1d5704a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/dbp-moodle/scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dummy_probe_patch=$(cat <<-EOF
# If update backup: depending on exit code create the signal for the update helper job with success or failure
function clean_up() {
exit_code=$?
if ! [ -a /mountData/moodledata/CliUpdate ]; then
if ! [ -e /mountData/moodledata/CliUpdate ]; then
echo "=== Starting cleanup ==="
echo "=== Stopping maintenance mode ==="
rm -f /mountData/moodledata/climaintenance.html
Expand Down Expand Up @@ -108,7 +108,7 @@ if [ ! -d "${backup_dir}" ]; then
fi

# If the backup is done for the update it skips the preparation because the update helper already did this
if ! [ -a /mountData/moodledata/CliUpdate ]; then
if ! [ -e /mountData/moodledata/CliUpdate ]; then
# Suspend the cronjob to avoid errors due to missing moodle
echo "=== Suspending moodle cronjob ==="
kubectl patch cronjobs "{{ .Release.Name }}-moodlecronjob-{{ include "moodlecronjob.job_name" . }}" -n "{{ .Release.Namespace }}" -p '{"spec" : {"suspend" : true }}'
Expand Down

0 comments on commit 1d5704a

Please sign in to comment.