Keep /etc/maas permissions as well
PROD-33924
Change-Id: I7000049042a7bd8adbc36c3883e43093769a4a6b
diff --git a/backupninja-backup-pipeline.groovy b/backupninja-backup-pipeline.groovy
index ad8b916..3356138 100644
--- a/backupninja-backup-pipeline.groovy
+++ b/backupninja-backup-pipeline.groovy
@@ -158,7 +158,9 @@
def maasNodes = salt.getMinions(pepperEnv, 'I@maas:region')
if (!maasNodes.isEmpty()) {
common.infoMsg("Trying to save maas file permissions on ${maasNodes} if possible")
- salt.cmdRun(pepperEnv, 'I@maas:region', 'which getfacl && getfacl -pR /var/lib/maas/ > /var/lib/maas/file_permissions.txt || true')
+ salt.cmdRun(pepperEnv, 'I@maas:region', 'which getfacl && ' +
+ 'getfacl -pR /var/lib/maas/ > /var/lib/maas/file_permissions.txt &&' +
+ 'getfacl -pR /etc/maas/ > /etc/maas/file_permissions.txt || true')
}
}
if (backupDogtag) {