Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid -u parameter when using the OS crontab for WMAgent #1564

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docker/pypi/wmagent/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,11 @@ set_cronjob() {
echo "Start: $stepMsg"
local errVal=0

# Avoid -u parameter when using the OS crontab
_is_venv && crontabParams="" || crontabParams="-u $WMA_USER"

# Populating proxy related cronjobs
crontab -u $WMA_USER - <<EOF
crontab $crontabParams - <<EOF
55 */12 * * * date -Im >> $WMA_LOG_DIR/renew-proxy.log && $WMA_MANAGE_DIR/manage renew-proxy 2>&1 >> $WMA_LOG_DIR/renew-proxy.log
58 */12 * * * python $WMA_DEPLOY_DIR/deploy/checkProxy.py --proxy /data/certs/myproxy.pem --time 120 --send-mail True --mail [email protected]
*/15 * * * * source $WMA_DEPLOY_DIR/deploy/restartComponent.sh 2>&1 >> $WMA_LOG_DIR/component-restart.log
Expand Down