Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and mambelli committed Sep 25, 2024
1 parent 4341073 commit c6b9511
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions build/packaging/rpm/frontend_startup
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ id_str="$frontend_name"
check_idtoken_password() {
# Make sure that the IDTOKEN password exists
if [ ! -f "$frontend_root_dir"/passwords.d/FRONTEND ]; then
local htc_frontend_password=/etc/condor/passwords.d/FRONTEND
local htc_frontend_password=/etc/condor/passwords.d/FRONTEND
if [ ! -f "$htc_frontend_password" ]; then
openssl rand -base64 64 | /usr/sbin/condor_store_cred -u "frontend@$(hostname -f)" -f "$htc_frontend_password" add > /dev/null 2>&1
fi
Expand Down Expand Up @@ -132,21 +132,21 @@ downtime() {
echo $"Usage: frontend_startup $1 'frontend'|'entries'|entry_name [delay]"
exit 1
fi

if [ "$1" == "down" ]; then
echo -n "Setting downtime for"
elif [ "$1" == "up" ]; then
echo -n "Removing downtime for"
else
echo -n "Infosys-based downtime management for"
fi

if [ "$2" == "frontend" ]; then
echo -n " frontend:"
else
echo -n " entry $2:"
fi

"manageFrontendDowntimes" "$frontend_dir" $2 $1 $3 2>/dev/null 1>&2 </dev/null && success || failure
RETVAL=$?
echo
Expand Down Expand Up @@ -178,4 +178,3 @@ case $1 in
esac

exit $RETVAL

1 change: 0 additions & 1 deletion creation/templates/frontend_initd_startup_template
Original file line number Diff line number Diff line change
Expand Up @@ -564,4 +564,3 @@ case $1 in
esac

exit $RETVAL

1 change: 0 additions & 1 deletion creation/templates/frontend_initd_startup_template_sl7
Original file line number Diff line number Diff line change
Expand Up @@ -572,4 +572,3 @@ case $1 in
esac

exit $RETVAL

0 comments on commit c6b9511

Please sign in to comment.