Skip to content

Commit

Permalink
fix(chore): clean up tmp files from scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
guilbep committed Mar 12, 2024
1 parent e9d7bd3 commit c79a023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azure-cron/add_jwt_keys_to_couchdb_via_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ for key in $(jq -r 'keys[]' jwt_keys.json); do
echo "-----------------------END"
done

echo "clean up files"
rm jwt_keys.json
rm temp_file
rm $temp_file
rm *.cer
rm *.pem
# reload configuration
# POST /_node/nonode@nohost/_config/_reload
# not necessary, keeping as a reference for future use
Expand Down
3 changes: 3 additions & 0 deletions couchdb/add_jwt_keys_to_local_ini_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ cat local.ini | sed '/^\[jwt_keys\]/,/^\\[logs\]/{/^\[jwt_keys\]/!{/^\\[logs\]/
cat local.ini.temp jwt_keys.ini > local.ini
rm local.ini.temp
rm jwt_keys.ini
rm $temp_file
rm *.pem
rm *.cer

echo "end of configuration file update";

0 comments on commit c79a023

Please sign in to comment.