fixed cat command

This commit is contained in:
2023-08-26 09:36:23 -05:00
parent a43fedc943
commit ab71e2a310

View File

@@ -1,6 +1,6 @@
#!/bin/bash
isInFile=$(cat /etc/postfix/main.cf | grep -c 'APT::Periodic::Unattended-Upgrade "1";')
isInFile=$(cat /etc/apt/apt.conf.d/20auto-upgrades | grep -c 'APT::Periodic::Unattended-Upgrade "1";')
if [ $isInFile -eq 0 ]
then
apt install -y apt-listchanges unattended-upgrades