Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
4db1d3b4
Commit
4db1d3b4
authored
Mar 11, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.25
parent
adda3a5c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
384 deletions
+14
-384
install_letsencrypt.sh
distros/debian12/install_letsencrypt.sh
+4
-4
install_mta.sh
distros/debian12/install_mta.sh
+10
-9
install_owncloud.sh
distros/debian12/install_owncloud.sh
+0
-371
No files found.
distros/debian12/install_letsencrypt.sh
View file @
4db1d3b4
...
...
@@ -5,16 +5,16 @@
InstallLetsEncrypt
()
{
local
START_TIME
=
$SECONDS
echo
-n
-e
"
$IDENTATION_LVL_
0
${
BWhite
}
Installing LetsEncrypt Certbot
${
NC
}
\n
"
echo
-n
-e
"
$IDENTATION_LVL_
1
${
BWhite
}
Installing LetsEncrypt Certbot
${
NC
}
\n
"
if
[
$CFG_CERTBOT_VERSION
==
"Certbot"
]
;
then
if
[
$CFG_WEBSERVER
==
"apache"
]
;
then
echo
-n
-e
"
$IDENTATION_LVL_
1
Installing certbot for Apache... "
echo
-n
-e
"
$IDENTATION_LVL_
2
Installing certbot for Apache... "
apt_install certbot python3-certbot-apache
certbot
--apache
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
elif
[
$CFG_WEBSERVER
==
"nginx"
]
;
then
echo
-n
-e
"
$IDENTATION_LVL_
1
Installing certbot for Nginx... "
echo
-n
-e
"
$IDENTATION_LVL_
2
Installing certbot for Nginx... "
apt_install certbot python3-certbot-nginx
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
fi
...
...
@@ -26,7 +26,7 @@ InstallLetsEncrypt() {
#certbot renew --dry-run
elif
[
$CFG_CERTBOT_VERSION
==
"Acme.sh"
]
;
then
echo
-n
-e
"
$IDENTATION_LVL_
1
Installing acme.sh... "
echo
-n
-e
"
$IDENTATION_LVL_
2
Installing acme.sh... "
#Advanced installation
#git clone https://github.com/Neilpang/acme.sh.git
#git clone https://github.com/acmesh-official/acme.sh.git
...
...
distros/debian12/install_mta.sh
View file @
4db1d3b4
...
...
@@ -66,24 +66,25 @@ InstallMTA() {
-e
"/^#default_login_user =/a log_path = /var/log/mail.log"
\
"/etc/dovecot/conf.d/10-master.conf"
sed
-i
"s/ #user =/ user = postfix/"
/etc/dovecot/conf.d/10-master.conf
sed
-i
"s/ #group =/ group = postfix/"
/etc/dovecot/conf.d/10-master.conf
sed
-i
"s/ #user =
.*
/ user = postfix/"
/etc/dovecot/conf.d/10-master.conf
sed
-i
"s/ #group =
.*
/ group = postfix/"
/etc/dovecot/conf.d/10-master.conf
# The inotify `max_user_instances` default is 128, which constrains
# the total number of watched (IMAP IDLE push) folders by open connections.
# See http://www.dovecot.org/pipermail/dovecot/2013-March/088834.html.
# A reboot is required for this to take effect (which we don't do as
# as a part of setup). Test with `cat /proc/sys/fs/inotify/max_user_instances`.
sed
-i
"/^#*
\s
*fs
\.
inotify
\.
max_user_instances
\s
*=/d;
$a
\f
s.inotify.max_user_instances=1024"
/etc/sysctl.conf
#sed -i "/^#*\s*fs\.inotify\.max_user_instances\s*=/d; $a\fs.inotify.max_user_instances=1024" /etc/sysctl.conf
echo
"fs.inotify.max_user_instances=1024"
|
sudo tee
-a
/etc/sysctl.conf
# Set the location where we'll store user mailboxes. '%d' is the domain name and '%n' is the
# username part of the user's email address. We'll ensure that no bad domains or email addresses
# are created within the management daemon.
sed
-i
-E
\
-e
"s/^mail_location
\s
*=
\s
*.*/mail_location = maildir:
$STORAGE_ROOT
\/
mail
\/
mailboxes
\/
%d
\/
%n/"
\
-e
"s/^mail_privileged_group
\s
*=
\s
*.*/mail_privileged_group = mail/"
\
-e
"s/^#first_valid_uid
\s
*=
\s
*.*/first_valid_uid = 0/"
\
/etc/dovecot/conf.d/10-mail.conf
#
sed -i -E \
#
-e "s/^mail_location\s*=\s*.*/mail_location = maildir:$STORAGE_ROOT\/mail\/mailboxes\/%d\/%n/" \
#
-e "s/^mail_privileged_group\s*=\s*.*/mail_privileged_group = mail/" \
#
-e "s/^#first_valid_uid\s*=\s*.*/first_valid_uid = 0/" \
#
/etc/dovecot/conf.d/10-mail.conf
# Create, subscribe, and mark as special folders: INBOX, Drafts, Sent, Trash, Spam and Archive.
cp
$APWD
/conf/dovecot-mailboxes.conf /etc/dovecot/conf.d/15-mailboxes.conf
...
...
distros/debian12/install_owncloud.sh
View file @
4db1d3b4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment