File tree Expand file tree Collapse file tree
scripts/install/system-misc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,6 +186,15 @@ if [ "${KSM}" = 1 ];
186186 echo " KSM=1" >> /home/EngineScript/install-log.txt
187187fi
188188
189+ # Raising System File Limits
190+ if [ " ${SFL} " = 1 ];
191+ then
192+ echo " SSTEM FILE LIMITS script has already run."
193+ else
194+ /usr/local/bin/enginescript/scripts/install/system-misc/file-limits.sh
195+ echo " SFL=1" >> /home/EngineScript/install-log.txt
196+ fi
197+
189198# Kernel Update
190199# if [ "${KERNEL_UPDATE}" = 1 ];
191200# then
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # ----------------------------------------------------------------------------
3+ # EngineScript - High-Performance WordPress LEMP Server
4+ # ----------------------------------------------------------------------------
5+ # Website: https://EngineScript.com
6+ # GitHub: https://github.com/Enginescript/EngineScript
7+ # Company: VisiStruct / EngineScript
8+ # License: GPL v3.0
9+ # OS: Ubuntu 22.04 (jammy)
10+ # ----------------------------------------------------------------------------
11+
12+ # EngineScript Variables
13+ source /usr/local/bin/enginescript/enginescript-variables.txt
14+ source /home/EngineScript/enginescript-install-options.txt
15+
16+ # Check current user's ID. If user is not 0 (root), exit.
17+ if [ " ${EUID} " != 0 ];
18+ then
19+ echo " ${BOLD} ALERT:${NORMAL} "
20+ echo " EngineScript should be executed as the root user."
21+ exit
22+ fi
23+
24+ # ----------------------------------------------------------------------------
25+ # Start Main Script
26+
27+ echo " * hard nofile 60666" >> /etc/security/limits.conf
28+ echo " * soft nofile 60666" >> /etc/security/limits.conf
29+ echo " root hard nofile 60666" >> /etc/security/limits.conf
30+ echo " root soft nofile 60666" >> /etc/security/limits.conf
31+ echo " session required pam_limits.so" >> /etc/pam.d/common-session
You can’t perform that action at this time.
0 commit comments