From fa68eba018dcddf1dfb0f0d7401aa3a0ef472d0a Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 10 Feb 2025 14:53:51 +0100 Subject: [PATCH] Update install.sh --- install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 2196a3eb..5a5d78e5 100644 --- a/install.sh +++ b/install.sh @@ -279,8 +279,8 @@ display_what_will_be_installed # display os, version, ip install_python312 update_package_manager # update dnf/yum/apt-get install_packages # install docker, csf/ufw, sqlite, etc. -edit_fstab # enable quotas download_skeleton_directory_from_github # download configuration to /etc/openpanel/ +edit_fstab # enable quotas setup_bind # must run after -configuration install_openadmin # set admin interface opencli_setup # set terminal commands @@ -1174,8 +1174,14 @@ fi repquota / >/dev/null 2>&1 quota -v >/dev/null 2>&1 - debug_log echo "Testing quotas.." - repquota -u / > /etc/openpanel/openpanel/core/users/repquota >/dev/null 2>&1 + debug_log "Testing quotas.." + repquota -u / > /etc/openpanel/openpanel/core/users/repquota 2>/dev/null + if [ $? -eq 0 ]; then + echo -e "[${GREEN} OK ${RESET}] Quotas are now enabled for users." + else + echo -e "[${RED} FAIL ${RESET}] Quota check failed." + fi + }