fix: more details about necessary packages. Closes #4

This commit is contained in:
FreeMedia.Tech
2024-05-02 20:48:53 +02:00
parent f1d8d2ed42
commit 03932be7fe
2 changed files with 3 additions and 2 deletions

View File

@@ -16,14 +16,14 @@ if [[ "$FMTCURID" != "0" ]]; then
fi
if [[ ! -d "/etc/iptables/" ]]; then
echo "The script is intended to be used with iptables"
echo "The script is intended to be used with iptables. Are you sure all the necessary packages are installed? Run: 'sudo apt-get install iptables-persistent'"
exit 2
fi
if [[ "$FMTDOLOGS" ]]; then
echo "Installing rsyslogd config..."
if [[ ! -f "/etc/rsyslog.d/50-default.conf" ]]; then
echo "rsyslog.d/50-default.conf not found, there is no place to put the new config file"
echo "rsyslog.d/50-default.conf not found, are you sure rsyslogd is installed? Run: 'sudo apt-get install rsyslog'"
exit 1
fi