Skip to content

Commit

Permalink
Updated test scenarios to work on containers.
Browse files Browse the repository at this point in the history
Added package metadata, and made scenarios more robust - not all files may really be there.
  • Loading branch information
matejak committed Mar 15, 2021
1 parent 5ca4d33 commit 3c36868
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
@@ -1,4 +1,6 @@
#!/bin/bash

# packages: logrotate,crontabs

sed -i "s/weekly/daily/g" /etc/logrotate.conf
echo "monthly" >> /etc/logrotate.conf
@@ -1,5 +1,7 @@
#!/bin/bash

# platform = Red Hat Enterprise Linux 7

# fix logrotate config
sed -i "s/weekly/daily/" /etc/logrotate.conf

Expand Down
@@ -1,4 +1,6 @@
#!/bin/bash

# packages = logrotate,crontabs

sed -i "/^daily/d" /etc/logrotate.conf
rm /etc/cron.daily/logrotate
rm -f /etc/cron.daily/logrotate
@@ -1,7 +1,9 @@
#!/bin/bash

# packages = logrotate,crontabs

# fix logrotate config
sed -i "s/weekly/daily/" /etc/logrotate.conf

# remove default for cron.daily
rm /etc/cron.daily/logrotate
rm -f /etc/cron.daily/logrotate

0 comments on commit 3c36868

Please sign in to comment.