fixed cat command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user