Commit 24c05dbb authored by w4t's avatar w4t

wtserver 0.59

parent a74efc87
...@@ -249,6 +249,17 @@ AskQuestions() { ...@@ -249,6 +249,17 @@ AskQuestions() {
fi fi
if [ "$CFG_GITLABINSTALL" == "yes" ]; then if [ "$CFG_GITLABINSTALL" == "yes" ]; then
CFG_GITLAB_VERSION=$(whiptail --title "GitLab Version" --backtitle "$WT_BACKTITLE" --menu "Choose GitLab version to install:" $WT_HEIGHT $WT_WIDTH 2 \
"1" "GitLab Community Edition (CE)" \
"2" "GitLab Enterprise Edition (EE)" \
3>&1 1>&2 2>&3)
if [ "$CFG_GITLAB_VERSION" == "1" ]; then
CFG_GITLAB_VERSION="ce"
elif [ "$CFG_GITLAB_VERSION" == "2" ]; then
CFG_GITLAB_VERSION="ee"
fi
echo -n -e "$IDENTATION_LVL_2 ${BBlack}Retrieve Gitlab Admin password${NC}: " echo -n -e "$IDENTATION_LVL_2 ${BBlack}Retrieve Gitlab Admin password${NC}: "
CFG_GITLAB_ADMIN_PWD=$(whiptail --title "Gitlab" --backtitle "$WT_BACKTITLE" --inputbox "Please specify a Gitlab Admin Password (leave empty for autogenerate)" --nocancel $WT_HEIGHT $WT_WIDTH 3>&1 1>&2 2>&3) CFG_GITLAB_ADMIN_PWD=$(whiptail --title "Gitlab" --backtitle "$WT_BACKTITLE" --inputbox "Please specify a Gitlab Admin Password (leave empty for autogenerate)" --nocancel $WT_HEIGHT $WT_WIDTH 3>&1 1>&2 2>&3)
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
# Install and configure of Gitlab-ce # Install and configure of Gitlab-ce
#--------------------------------------------------------------------- #---------------------------------------------------------------------
InstallGitlabCE() { InstallGitlab() {
echo -n "$IDENTATION_LVL_1 Installed Gitlab-ce packages... " echo -e "$IDENTATION_LVL_0 Installing Gitlab..."
echo -n -e "$IDENTATION_LVL_1 Installing required packages... "
apt_install curl openssh-server ca-certificates postfix apt-transport-https gnupg2 software-properties-common tzdata perl apt_install curl openssh-server ca-certificates postfix apt-transport-https gnupg2 software-properties-common tzdata perl
echo -e "[${green}DONE${NC}]"
echo -n -e "$IDENTATION_LVL_1 Installing Gitlab-$CFG_GITLAB_VERSION... "
cd /tmp cd /tmp
#curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-$CFG_GITLAB_VERSION/script.deb.sh | sudo bash >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
#apt_install gitlab-ce apt_install gitlab-$CFG_GITLAB_VERSION
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash > /dev/null
apt_install gitlab-ee
#external_url 'https://Your_Domain_Name' /etc/gitlab/gitlab.rb #external_url 'https://Your_Domain_Name' /etc/gitlab/gitlab.rb
#letsencrypt[‘contact_emails’] = [‘admin@lx.x’] #letsencrypt[‘contact_emails’] = [‘admin@lx.x’]
...@@ -249,5 +249,5 @@ Gitlab mysql root password : $CFG_GITLAB_ADMIN_PWD ...@@ -249,5 +249,5 @@ Gitlab mysql root password : $CFG_GITLAB_ADMIN_PWD
#---------------------------- #----------------------------
EOF EOF
echo -e "[${green}DONE${NC}]" echo -e "[${green}DONE${NC}]"
} }
...@@ -21,7 +21,7 @@ InstallISPConfig() { ...@@ -21,7 +21,7 @@ InstallISPConfig() {
echo -n -e "$IDENTATION_LVL_1 Extracting the downloaded package... " echo -n -e "$IDENTATION_LVL_1 Extracting the downloaded package... "
cd $PROGRAMS_INSTALL_DOWNLOAD cd $PROGRAMS_INSTALL_DOWNLOAD
tar xfz $PROGRAMS_INSTALL_DOWNLOAD/ISPConfig-*.tar.gz >>$PROGRAMS_INSTALL_LOG_FILES 2>&1 tar xfz $PROGRAMS_INSTALL_DOWNLOAD/ISPConfig-*.tar.gz >>$PROGRAMS_INSTALL_LOG_FILES 2>&1
AUTO_INSTALL_INI_LOCATION=$PROGRAMS_INSTALL_DOWNLOAD/ispconfig3-install/install AUTO_INSTALL_INI_LOCATION=$PROGRAMS_INSTALL_DOWNLOAD/ispconfig3_install/install
cd $AUTO_INSTALL_INI_LOCATION cd $AUTO_INSTALL_INI_LOCATION
echo -e "[${green}DONE${NC}]" echo -e "[${green}DONE${NC}]"
......
...@@ -369,6 +369,10 @@ if [ -f /etc/debian_version ]; then ...@@ -369,6 +369,10 @@ if [ -f /etc/debian_version ]; then
InstallWebStats InstallWebStats
if [ "$CFG_GITLABINSTALL" == "yes" ]; then
InstallGitlab
fi
if [ "$CFG_SETUP_MASTER" == "yes" ] || [ "$CFG_MULTISERVER" == "no" ]; then if [ "$CFG_SETUP_MASTER" == "yes" ] || [ "$CFG_MULTISERVER" == "no" ]; then
InstallISPConfig InstallISPConfig
fi fi
...@@ -378,10 +382,6 @@ if [ -f /etc/debian_version ]; then ...@@ -378,10 +382,6 @@ if [ -f /etc/debian_version ]; then
#InstallDrupal #InstallDrupal
#fi #fi
InstallFix InstallFix
if [ "$CFG_GITLABINSTALL" == "yes" ]; then
InstallGitlabCE
fi
echo -e "\n${green}Well done! ISPConfig installed and configured correctly :D${NC} 😃" echo -e "\n${green}Well done! ISPConfig installed and configured correctly :D${NC} 😃"
echo -e "\nNow you can access to your ISPConfig installation at: ${underlined}https://$CFG_HOSTNAME_FQDN:$CFG_ISPONCFIG_PORT${NC} or ${underlined}https://${IP_ADDRESS[0]}:$CFG_ISPONCFIG_PORT${NC}" echo -e "\nNow you can access to your ISPConfig installation at: ${underlined}https://$CFG_HOSTNAME_FQDN:$CFG_ISPONCFIG_PORT${NC} or ${underlined}https://${IP_ADDRESS[0]}:$CFG_ISPONCFIG_PORT${NC}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment