uclibs / ucrate

Scholar@UC: University of Cincinnati's self-submission institutional repository
https://scholar.uc.edu
Other
5 stars 3 forks source link

Updates embargo scripts. #1164

Closed scherztc closed 1 month ago

scherztc commented 2 months ago

Fixes #1165

The embargo scripts are not being used in cron since the date -v function is crashing. We need to clean up these scripts and then set them in crontab.

We have also separated the notification and releasing into their own scripts instead of doing it crontab.

scherztc commented 2 months ago

Yeah. I had concerns.
I didn't see environment in the .env files. So, I am working to find a way to pull that information from the environment. Any ideas?

hortongn commented 2 months ago

Perhaps the same way we handle script/restart_sidekiq.sh. We call that script with a parameter to specify the right environment. Like script/restart_sidekiq.sh development or script/restart_sidekiq.sh production

Look at the script/restart_sidekiq.sh source for how we're using ENVIRONMENT to grab and use the parameter.

scherztc commented 1 month ago

I tested this on DEV and it worked successfully with the application in INLINE mode verse SIDEKIQ mode. I repeat these scripts works on DEV