Remove Email Server
🎨 Lint / lint (push) Successful in 7s
Details
🎨 Lint / lint (push) Successful in 7s
Details
This commit is contained in:
parent
93fe657fa1
commit
9c6e6e762d
37
src/miab.sh
37
src/miab.sh
|
@ -1,37 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if we are running as sudo, if not, exit
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Please run as root. Maybe try 'sudo !!'"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "You need to specify arguments for this script."
|
||||
echo "bash miab.sh secrets # Allow script to run, after you have configured secrets and SSH private key."
|
||||
exit
|
||||
fi
|
||||
|
||||
# Do everything in general.sh first
|
||||
/usr/bin/bash general.sh secrets
|
||||
|
||||
# Change SSH Port
|
||||
/usr/bin/sed -i 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
|
||||
/usr/bin/systemctl restart sshd
|
||||
|
||||
# Symlink Mail Scripts to ~
|
||||
/usr/bin/ln -s ~/Scripts/Mail/After_MIAB_Upgrade.sh ~/After_MIAB_Upgrade.sh
|
||||
/usr/bin/ln -s ~/Scripts/Mail/Blacklist.sh ~/Blacklist.sh
|
||||
/usr/bin/ln -s ~/Scripts/Mail/Backup.sh ~/Backup.sh
|
||||
|
||||
# crontab for backups
|
||||
(/usr/bin/crontab -l ; echo "0 3 * * * /root/Scripts/Mail/Backup.sh") | /usr/bin/crontab -
|
||||
|
||||
echo
|
||||
echo "Almost there!"
|
||||
echo "- Setup HealthChecks for cronjobs"
|
||||
echo "- Manually install Mail-in-a-box by running:"
|
||||
echo " curl -s https://mailinabox.email/setup.sh | sudo -E bash"
|
||||
echo
|
||||
|
||||
cd ~ || exit
|
Loading…
Reference in New Issue