From 598c44664254549061d1b84d2dad1fab8505494d Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 20 Sep 2024 10:14:55 +0500 Subject: [PATCH] bug fix: contabo on quotas --- install/install.py | 2 +- plogical/upgrade.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.py b/install/install.py index d4e5ff280..7896a6797 100755 --- a/install/install.py +++ b/install/install.py @@ -293,7 +293,7 @@ def edit_fstab(self,mount_point, options_to_add): elif parts[1] == '/': for ii, p in enumerate(parts): - if p.find('defaults') > -1 or p.find('discard') > -1: + if p.find('defaults') > -1 or p.find('discard') > -1 or p.find('errors=') > -1: parts[ii] = f'{parts[ii]},{options_to_add}' tempParts = [item for item in parts if item.strip()] finalString = '\t'.join(tempParts) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 4b1fdd54b..1c785a0e0 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -3671,7 +3671,7 @@ def edit_fstab(mount_point, options_to_add): elif parts[1] == '/': for ii, p in enumerate(parts): - if p.find('defaults') > -1 or p.find('discard') > -1: + if p.find('defaults') > -1 or p.find('discard') > -1 or p.find('errors=') > -1: parts[ii] = f'{parts[ii]},{options_to_add}' tempParts = [item for item in parts if item.strip()] finalString = '\t'.join(tempParts)