-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from rsiddall/master
Fixes for CentOS 7 support (and a few typos)
- Loading branch information
Showing
13 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#--------------------------------------------------------------------- | ||
# Function: InstallMailman | ||
# Install the Mailman list manager | ||
#--------------------------------------------------------------------- | ||
InstallMailman() { | ||
echo -n "Installing mailman... "; | ||
yum -y install mailman > /dev/null 2>&1 | ||
/usr/lib/mailman/bin/mmsitepass ${MMSITEPASS} | ||
/usr/lib/mailman/bin/newlist -q mailman ${MMLISTOWNER} ${MMLISTPASS} | grep '/usr/lib' >> /etc/mailman/aliases | ||
postalias /etc/mailman/aliases | ||
systemctl restart postfix > /dev/null 2>&1 | ||
systemctl enable mailman > /dev/null 2>&1 | ||
systemctl start mailman > /dev/null 2>&1 | ||
echo -e "${green}done! ${NC}\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#--------------------------------------------------------------------- | ||
# Function: InstallMetronom | ||
# Install Metronom Server | ||
#--------------------------------------------------------------------- | ||
InstallMetronom() { | ||
echo -n "Installing Metronome..."; | ||
yum -y install git lua lua-devel lua-filesystem libidn-devel openssl-devel lua-bitop lua-socket lua-sec luarocks | ||
luarocks install lpc | ||
adduser --no-create-home --shell /sbin/nologin --comment 'Metronome' metronome | ||
cd /opt; git clone https://github.com/maranda/metronome.git metronome | ||
cd ./metronome; ./configure --ostype=centos --prefix=/usr | ||
make | ||
make install | ||
pushd /etc/metronome/certs && make localhost.key && make localhost.csr && make localhost.cert && chmod 0400 localhost.key && chown metronome localhost.key | ||
popd | ||
/bin/rm -rf metronome | ||
echo -e "[${green}DONE${NC}]\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ clear | |
echo "Welcome to ISPConfig Setup Script v.2.2.4" | ||
echo "This software is developed by Temporini Matteo" | ||
echo "with the support of the community." | ||
echo "You can visit my website at the followings URLS" | ||
echo "You can visit my website at the followings URLs" | ||
echo "http://www.servisys.it http://www.temporini.net" | ||
echo "and contact me with the following information" | ||
echo "contact email/hangout: [email protected]" | ||
|
@@ -190,11 +190,11 @@ if [ -f /etc/debian_version ]; then | |
fi | ||
else | ||
if [ -f /etc/centos-release ]; then | ||
echo "Attention pls, this is the very first version of the script for Centos 7" | ||
echo "Pls use only for test pourpose for now." | ||
echo "Attention please, this is the very first version of the script for CentOS 7" | ||
echo "Please use only for test purpose for now." | ||
echo -e "${red}Not yet implemented: courier, nginx support${NC}" | ||
echo -e "${green}Yet implemented: apache, mysql, bind, postfix, dovecot, roudcube webmail support${NC}" | ||
echo "Help us to test and implement, press ENTER if you understand what i'm talinkg about..." | ||
echo -e "${green}Implemented: apache, mysql, bind, postfix, dovecot, roudcube webmail support${NC}" | ||
echo "Help us to test and implement, press ENTER if you understand what I'm talking about..." | ||
read DUMMY | ||
PreInstallCheck | ||
AskQuestions | ||
|
@@ -214,10 +214,13 @@ else | |
InstallJailkit | ||
fi | ||
InstallFail2ban | ||
if [ "$CFG_METRONOM" == "yes" ]; then | ||
InstallMetronom | ||
fi | ||
InstallWebmail | ||
InstallISPConfig | ||
#InstallFix | ||
echo -e "${green}Well done ISPConfig installed and configured correctly :D ${NC}" | ||
echo -e "${green}Well done! ISPConfig installed and configured correctly :D ${NC}" | ||
echo "Now you can connect to your ISPConfig installation at https://$CFG_HOSTNAME_FQDN:8080 or https://IP_ADDRESS:8080" | ||
echo "You can visit my GitHub profile at https://github.com/servisys/ispconfig_setup/" | ||
echo -e "${red}If you setup Roundcube webmail go to http://$CFG_HOSTNAME_FQDN/roundcubemail/installer and configure db connection${NC}" | ||
|