alexmyczko / ruptime

poor man’s ruptime
https://wedonthaveaprivacyproblem.com/ruptime
GNU Affero General Public License v3.0
146 stars 7 forks source link

Missing file usr/share/doc/ruptime/examples/ruptime.conf on installation #14

Open rfmoz opened 7 months ago

rfmoz commented 7 months ago

Hello,

I've received and error trying to install ruptime_1.6-1_amd64.deb on a Debian 12.2:

# dpkg -i ruptime_1.6-1_amd64.deb

Setting up ruptime (1.6-1) ...

Creating config file /etc/cron.d/ruptime with new version
Error: The new file usr/share/doc/ruptime/examples/ruptime.conf does not exist!
dpkg: error processing package ruptime (--configure):
 installed ruptime package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Errors were encountered while processing:
 ruptime
E: Sub-process /usr/bin/dpkg returned an error code (1)

# ls /usr/share/doc/ruptime/examples/
cron.d  ruptime

I think that the path must point to:

# cat /usr/share/doc/ruptime/examples/ruptime/ruptime.conf 
SERVER=localhost
PORT=51300
HOSTNAMECMD='hostname -f'
#HOSTNAMECMD='hostname -f | sed -e :a -e "s/[^X.]\(.*\.\)/X\1/;ta"'
SPOOL=/var/spool/ruptime
LC_ALL=C
alexmyczko commented 7 months ago

somehow the release debs are bad, I'll need to update them again, here's the one that works for me:

https://sid.ethz.ch/debian/ruptime/u/

alexmyczko commented 7 months ago

could you try with 1.8?

alexmyczko commented 7 months ago

i am sure it works now…

rfmoz commented 4 months ago

The installation works, but after done it in a clean system, the first execution reports:

# ruptime 
/usr/bin/ruptime: line 4: pgrep: command not found
Stdin was NOT decrypted successfully.
NO DATA FOUND (1)

Please, add an other dependency for procps