From b63070f9ef266c0b9b7b43874e8f02b6b5a76cbd Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 17 Sep 2024 08:03:07 +0500 Subject: [PATCH] quotas for al8/9 --- install/install.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index b196af349..bc9281e90 100755 --- a/install/install.py +++ b/install/install.py @@ -245,11 +245,18 @@ def edit_fstab(self,mount_point, options_to_add): print(parts) try: - if parts[1] == '/' and parts[3].find('usrquota,grpquota') == -1: + if parts[1] == '/' and parts[3].find('usrquota,grpquota') == -1 and len(parts[3]) > 4: parts[3] = f'{parts[3]},usrquota,grpquota' finalString = '\t'.join(parts) print(finalString) WriteToFile.write(finalString) + elif parts[1] == '/': + for ii, p in enumerate(parts): + if p.find('defaults') > -1: + parts[ii] = f'{parts[ii]},usrquota,grpquota' + finalString = '\t'.join(parts) + print(finalString) + WriteToFile.write(finalString) else: WriteToFile.write(line) except: