Recommending refreshing files when database has no files.

This commit is contained in:
Roland 2025-01-11 11:06:43 -07:00
parent dd35cf591f
commit 16e359b339
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -104,7 +104,7 @@ if sudo -i -u wrolpi psql -l 2>/dev/null | grep wrolpi >/dev/null; then
if [ "$(sudo -i -u wrolpi psql wrolpi -c 'copy (select count(*) from file_group) to stdout' 2>/dev/null)" -gt 0 ]; then
echo "OK: WROLPi database has files"
else
echo "FAILED: WROLPi database has no files"
echo "FAILED: WROLPi database has no files. You need to refresh your files: https://$(hostname).local/files"
fi
else
echo "FAILED: WROLPi is not initialized"