Skip to content

Commit f2c5a6d

Browse files
authored
Update hst-install-ubuntu.sh
Add RESOURCES_LIMIT to ubuntu installation script
1 parent 368c8d5 commit f2c5a6d

File tree

1 file changed

+39
-33
lines changed

1 file changed

+39
-33
lines changed

install/hst-install-ubuntu.sh

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ help() {
7575
-i, --iptables Install iptables [yes|no] default: yes
7676
-b, --fail2ban Install Fail2Ban [yes|no] default: yes
7777
-q, --quota Filesystem Quota [yes|no] default: no
78-
-L, --resourcelimit Resource limitation [yes|no] default: no
78+
-L, --resourcelimit Resource Limitation [yes|no] default: no
7979
-W, --webterminal Web Terminal [yes|no] default: no
8080
-d, --api Activate API [yes|no] default: yes
8181
-r, --port Change Backend Port default: 8083
@@ -284,37 +284,37 @@ eval set -- "$args"
284284
# Parsing arguments
285285
while getopts "a:w:v:j:k:m:M:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:u:e:p:W:D:fh" Option; do
286286
case $Option in
287-
a) apache=$OPTARG ;; # Apache
288-
w) phpfpm=$OPTARG ;; # PHP-FPM
289-
o) multiphp=$OPTARG ;; # Multi-PHP
290-
v) vsftpd=$OPTARG ;; # Vsftpd
291-
j) proftpd=$OPTARG ;; # Proftpd
292-
k) named=$OPTARG ;; # Named
293-
m) mysql=$OPTARG ;; # MariaDB
294-
M) mysql8=$OPTARG ;; # MySQL
295-
g) postgresql=$OPTARG ;; # PostgreSQL
296-
x) exim=$OPTARG ;; # Exim
297-
z) dovecot=$OPTARG ;; # Dovecot
298-
Z) sieve=$OPTARG ;; # Sieve
299-
c) clamd=$OPTARG ;; # ClamAV
300-
t) spamd=$OPTARG ;; # SpamAssassin
301-
i) iptables=$OPTARG ;; # Iptables
302-
b) fail2ban=$OPTARG ;; # Fail2ban
303-
q) quota=$OPTARG ;; # FS Quota
304-
L) resourcelimit=$OPTARG ;; # Resource Limitation
305-
W) webterminal=$OPTARG ;; # Web Terminal
306-
r) port=$OPTARG ;; # Backend Port
307-
l) lang=$OPTARG ;; # Language
308-
d) api=$OPTARG ;; # Activate API
309-
y) interactive=$OPTARG ;; # Interactive install
310-
s) servername=$OPTARG ;; # Hostname
311-
e) email=$OPTARG ;; # Admin email
312-
u) username=$OPTARG ;; # Admin username
313-
p) vpass=$OPTARG ;; # Admin password
314-
D) withdebs=$OPTARG ;; # Hestia debs path
315-
f) force='yes' ;; # Force install
316-
h) help ;; # Help
317-
*) help ;; # Print help (default)
287+
a) apache=$OPTARG ;; # Apache
288+
w) phpfpm=$OPTARG ;; # PHP-FPM
289+
o) multiphp=$OPTARG ;; # Multi-PHP
290+
v) vsftpd=$OPTARG ;; # Vsftpd
291+
j) proftpd=$OPTARG ;; # Proftpd
292+
k) named=$OPTARG ;; # Named
293+
m) mysql=$OPTARG ;; # MariaDB
294+
M) mysql8=$OPTARG ;; # MySQL
295+
g) postgresql=$OPTARG ;; # PostgreSQL
296+
x) exim=$OPTARG ;; # Exim
297+
z) dovecot=$OPTARG ;; # Dovecot
298+
Z) sieve=$OPTARG ;; # Sieve
299+
c) clamd=$OPTARG ;; # ClamAV
300+
t) spamd=$OPTARG ;; # SpamAssassin
301+
i) iptables=$OPTARG ;; # Iptables
302+
b) fail2ban=$OPTARG ;; # Fail2ban
303+
q) quota=$OPTARG ;; # FS Quota
304+
L) resourcelimit=$OPTARG ;; # Resource Limitation
305+
W) webterminal=$OPTARG ;; # Web Terminal
306+
r) port=$OPTARG ;; # Backend Port
307+
l) lang=$OPTARG ;; # Language
308+
d) api=$OPTARG ;; # Activate API
309+
y) interactive=$OPTARG ;; # Interactive install
310+
s) servername=$OPTARG ;; # Hostname
311+
e) email=$OPTARG ;; # Admin email
312+
u) username=$OPTARG ;; # Admin username
313+
p) vpass=$OPTARG ;; # Admin password
314+
D) withdebs=$OPTARG ;; # Hestia debs path
315+
f) force='yes' ;; # Force install
316+
h) help ;; # Help
317+
*) help ;; # Print help (default)
318318
esac
319319
done
320320

@@ -2433,4 +2433,10 @@ $HESTIA/bin/v-add-user-notification "$username" 'Welcome to Hestia Control Panel
24332433
sort_config_file
24342434

24352435
if [ "$interactive" = 'yes' ]; then
2436-
echo "[ ! ] IMPORTANT: The sys
2436+
echo "[ ! ] IMPORTANT: The system will now reboot to complete the installation process."
2437+
read -n 1 -s -r -p "Press any key to continue"
2438+
reboot
2439+
else
2440+
echo "[ ! ] IMPORTANT: You must restart the system before continuing!"
2441+
fi
2442+
# EOF

0 commit comments

Comments
 (0)