Skip to content

installfog.sh cannot upgrade FOG on Debian Trixie: "/lib/common/functions.sh: line 1526: lastlog: command not found" #818

@busdrw

Description

@busdrw

Describe the bug
When trying to upgrade FOG on Debian Trixie, installfog.sh fails because lastlog isn't installed. Debian Trixie removed the lastlog command.

To Reproduce
Steps to reproduce the behavior:

  1. Have an existing FOG installation (1.5.10.1815) on Debian Trixie.
  2. Go to an existing checkout of this repository and pull it
  3. cd to bin and sudo ./installfog.sh -y
  4. installfog.sh fails with the following error:
 * Configuring services

 * Setting up fogproject user..................................../lib/common/functions.sh: line 1526: lastlog: command not found
Already exists

The account "fogproject" already exists and has been used to
log in to this server. We highly recommend you NOT use this
account as it is supposed to be a system account!

Please remove the account "fogproject" manually before running
the installer again, or set the system username yourself.

To remove the account run: userdel fogproject

To set a new service username run installer with:
username=<usernameForSystem> ./installfog.sh -y

Expected behavior
installfog.sh proceeds as normal, as it did prior to Debian Trixie.

Software (please complete the following information):

  • FOG version: 1.5.10.1815
  • FOS kernel: N/A
  • OS: Debian GNU/Linux 13 (trixie)

Additional context
System has been upgraded from previous Debian versions over the years, going back to 2018.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions