From 4ee8f59d74ae28a9ddda0de59685964b3f06e6e8 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 08:27:50 -0600 Subject: fix cronjob make --- crond.autopeer | 2 +- install.sh | 2 +- pam_autopeer/pam_autopeer.c | 4 ++-- pam_autopeer/pam_autopeer.o | Bin 5280 -> 5816 bytes pam_autopeer/pam_autopeer.so | Bin 16168 -> 16200 bytes 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crond.autopeer b/crond.autopeer index c582187..6ef4da9 100644 --- a/crond.autopeer +++ b/crond.autopeer @@ -1,6 +1,6 @@ 47 * * * * root git -c merge.verifysignatures=false -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull --quiet */5 * * * * root /opt/autopeer/cronjob.py >/dev/null -0 * * * * root git -C /opt/autopeer pull --quiet; cd /opt/autopeer/pam_autopeer; make +0 * * * * root git -C /opt/autopeer pull --quiet; cd /opt/autopeer/pam_autopeer; make -q */15 * * * * root curl -sfSLR -o /etc/bird/roa_dn42.conf -z /etc/bird/roa_dn42.conf https://dn42.burble.com/roa/dn42_roa_bird2_4.conf && /usr/sbin/birdc configure > /dev/null */15 * * * * root curl -sfSLR -o /etc/bird/roa_dn42_v6.conf -z /etc/bird/roa_dn42_v6.conf https://dn42.burble.com/roa/dn42_roa_bird2_6.conf && /usr/sbin/birdc configure > /dev/null diff --git a/install.sh b/install.sh index 569c40e..b746b48 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ read -p "Press enter once you've done that..." apt install -y git # you needed this to clone apt install -y vim curl wget man-db whois bind9 bind9-dnsutils bird2 # suggestions -apt install -y python3 wireguard-tools cron socat make libpam-dev gpg # dependencies +apt install -y python3 wireguard-tools cron socat make libpam-dev gpg libssl-dev # dependencies ln -s /opt/autopeer/sshd_config /etc/ssh/sshd_config.d/autopeer.conf systemctl reload ssh addgroup autopeer diff --git a/pam_autopeer/pam_autopeer.c b/pam_autopeer/pam_autopeer.c index 2f9aedb..0de333f 100644 --- a/pam_autopeer/pam_autopeer.c +++ b/pam_autopeer/pam_autopeer.c @@ -46,8 +46,8 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **ar unsigned char nonce[10]; if (RAND_bytes(nonce, 10) != 1) { - pam_syslog(pamh, LOG_ERR, "Error RAND_bytes: %d", ERR_get_error()); - pam_error(pamh, "Error RAND_bytes: %d", ERR_get_error()); + pam_syslog(pamh, LOG_ERR, "Error RAND_bytes: %ld", ERR_get_error()); + pam_error(pamh, "Error RAND_bytes: %ld", ERR_get_error()); return PAM_SYSTEM_ERR; } char s_nonce[21]; diff --git a/pam_autopeer/pam_autopeer.o b/pam_autopeer/pam_autopeer.o index e03a7da..6c8d5c7 100644 Binary files a/pam_autopeer/pam_autopeer.o and b/pam_autopeer/pam_autopeer.o differ diff --git a/pam_autopeer/pam_autopeer.so b/pam_autopeer/pam_autopeer.so index f06eed3..fcb2e37 100755 Binary files a/pam_autopeer/pam_autopeer.so and b/pam_autopeer/pam_autopeer.so differ -- cgit v1.3.1-10-gc9f91