Open danatinflux opened 4 months ago
Probably this line causing the issue https://github.com/MicLieg/LinuxGSM/blob/b3e40a59e994df6ea42d781a938522affc785b75/lgsm/modules/check_deps.sh#L116-L117
This will need to be updated to reflect changes in dependency names. I belive the replacement is s-nail
Fantastic! Thanks so much----I hadn't thought of grepping the 'modules' dir.
Changes made:
fn_deps_email() {
# Adds postfix to required dependencies if email alert is enabled.
if [ "${emailalert}" == "on" ]; then
if [ -f /usr/bin/mailx ]; then
if [ -d /etc/exim4 ]; then
array_deps_required+=(exim4)
elif [ -d /etc/sendmail ]; then
array_deps_required+=(sendmail)
elif [ "$(command -v yum 2> /dev/null)" ] || [ "$(command -v dnf 2> /dev/null)" ]; then
array_deps_required+=(s-nail postfix)
elif [ "$(command -v apt 2> /dev/null)" ]; then
array_deps_required+=(mailutils postfix)
fi
else
if [ "$(command -v yum 2> /dev/null)" ] || [ "$(command -v dnf 2> /dev/null)" ]; then
array_deps_required+=(s-nail postfix)
elif [ "$(command -v apt 2> /dev/null)" ]; then
array_deps_required+=(mailutils postfix)
fi
fi
fi
}
Seems to be working perfectly, thanks!
User story
Red Hat 9 no longer installs mailx. However, whenever I start Rust, it checks for it and tries to install it. This is making it more difficult to run commands in crontab, as it always asks for the sudo password when restarting or checking for updates.
Game
Rust
Linux distro
RedHat 9
Command
command: backup
Further information
When using the 'rustserver' command, it always checks for the mailx package, which is no longer installed on RH9.
This makes it a challenge to use the 'rustserver' command for crontab commands like backup, update, et. al.
Relevant log output
No response
Steps to reproduce
1) Use the 'rustserver' command to attempt a backup. 2) The dependency will fail and the user will be asked for the sudo password to install the dependency (which it cannot).