Check that file exists

This commit is contained in:
Bob Mottram 2018-03-28 15:22:30 +01:00
parent 80f041a5ce
commit d182a363b6
1 changed files with 5 additions and 3 deletions

View File

@ -63,9 +63,11 @@ if [ $DEVELOPMENT_BRANCH ]; then
fi fi
fi fi
if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then if [ -f /usr/bin/backupdatabases ]; then
# update to using the password manager if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then
sed -i "s|cat /root/dbpass|freedombone-pass -u root -a mariadb|g" /usr/bin/backupdatabases # update to using the password manager
sed -i "s|cat /root/dbpass|freedombone-pass -u root -a mariadb|g" /usr/bin/backupdatabases
fi
fi fi
#update-ca-certificates #update-ca-certificates