Allow prompt-less install on low-resource systems
This commit is contained in:
parent
bbbdcfb625
commit
5c851f2935
@ -147,6 +147,7 @@ done
|
|||||||
|
|
||||||
MEM_TOTAL=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
|
MEM_TOTAL=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
|
||||||
|
|
||||||
|
if [ -z "${SKIP_CLAMD}" ]; then
|
||||||
if [ ${MEM_TOTAL} -le "2621440" ]; then
|
if [ ${MEM_TOTAL} -le "2621440" ]; then
|
||||||
echo "Installed memory is <= 2.5 GiB. It is recommended to disable ClamAV to prevent out-of-memory situations."
|
echo "Installed memory is <= 2.5 GiB. It is recommended to disable ClamAV to prevent out-of-memory situations."
|
||||||
echo "ClamAV can be re-enabled by setting SKIP_CLAMD=n in mailcow.conf."
|
echo "ClamAV can be re-enabled by setting SKIP_CLAMD=n in mailcow.conf."
|
||||||
@ -162,7 +163,9 @@ if [ ${MEM_TOTAL} -le "2621440" ]; then
|
|||||||
else
|
else
|
||||||
SKIP_CLAMD=n
|
SKIP_CLAMD=n
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${SKIP_SOLR}" ]; then
|
||||||
if [ ${MEM_TOTAL} -le "2097152" ]; then
|
if [ ${MEM_TOTAL} -le "2097152" ]; then
|
||||||
echo "Disabling Solr on low-memory system."
|
echo "Disabling Solr on low-memory system."
|
||||||
SKIP_SOLR=y
|
SKIP_SOLR=y
|
||||||
@ -182,6 +185,7 @@ elif [ ${MEM_TOTAL} -le "3670016" ]; then
|
|||||||
else
|
else
|
||||||
SKIP_SOLR=n
|
SKIP_SOLR=n
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ${SKIP_BRANCH} != y ]]; then
|
if [[ ${SKIP_BRANCH} != y ]]; then
|
||||||
echo "Which branch of mailcow do you want to use?"
|
echo "Which branch of mailcow do you want to use?"
|
||||||
|
Loading…
Reference in New Issue
Block a user