Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
b2b18e60
Commit
b2b18e60
authored
Apr 02, 2017
by
Igor Pecovnik
Browse files
Bugfixes
parent
c288c4bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
b2b18e60
...
@@ -183,7 +183,7 @@ if [[ $family == "Ubuntu" ]]; then
...
@@ -183,7 +183,7 @@ if [[ $family == "Ubuntu" ]]; then
# disable AppArmor
# disable AppArmor
service apparmor stop
service apparmor stop
update-rc.d -f apparmor remove
update-rc.d -f apparmor remove
apt-get remove apparmor apparmor-utils
apt-get
-y -qq
remove apparmor apparmor-utils
fi
fi
}
}
...
@@ -203,6 +203,7 @@ cat > /tmp/isp.conf.php <<EOF
...
@@ -203,6 +203,7 @@ cat > /tmp/isp.conf.php <<EOF
\$
autoinstall['mysql_root_password'] = '
$MYSQL_PASS
';
\$
autoinstall['mysql_root_password'] = '
$MYSQL_PASS
';
\$
autoinstall['mysql_database'] = 'dbispconfig'; // default: dbispcongig
\$
autoinstall['mysql_database'] = 'dbispconfig'; // default: dbispcongig
\$
autoinstall['mysql_charset'] = 'utf8'; // default: utf8
\$
autoinstall['mysql_charset'] = 'utf8'; // default: utf8
\$
autoinstall['mysql_server_port'] = '3306'; // default: 3306
\$
autoinstall['http_server'] = '
$server
'; // apache (default), nginx
\$
autoinstall['http_server'] = '
$server
'; // apache (default), nginx
\$
autoinstall['ispconfig_port'] = '8080'; // default: 8080
\$
autoinstall['ispconfig_port'] = '8080'; // default: 8080
\$
autoinstall['ispconfig_use_ssl'] = 'y'; // y (default), n
\$
autoinstall['ispconfig_use_ssl'] = 'y'; // y (default), n
...
@@ -426,7 +427,7 @@ install_MySQL (){
...
@@ -426,7 +427,7 @@ install_MySQL (){
install_packet
"mariadb-client mariadb-server"
"Install Mysql client / server"
install_packet
"mariadb-client mariadb-server"
"Install Mysql client / server"
#Allow MySQL to listen on all interfaces
#Allow MySQL to listen on all interfaces
cp
/etc/mysql/my.cnf /etc/mysql/my.cnf.backup
cp
/etc/mysql/my.cnf /etc/mysql/my.cnf.backup
sed
-i
's|bind-address = 127.0.0.1|#bind-address = 127.0.0.1|'
/etc/mysql/m
ariadb.conf.d/50-server
.cnf
sed
-i
's|bind-address = 127.0.0.1|#bind-address = 127.0.0.1|'
/etc/mysql/m
y
.cnf
SECURE_MYSQL
=
$(
expect
-c
"
SECURE_MYSQL
=
$(
expect
-c
"
set timeout 3
set timeout 3
spawn mysql_secure_installation
spawn mysql_secure_installation
...
@@ -686,4 +687,5 @@ wget -q http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz -O - | tar
...
@@ -686,4 +687,5 @@ wget -q http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz -O - | tar
cd
/tmp/ispconfig3_install/install/
cd
/tmp/ispconfig3_install/install/
#apt-get -y install php5-cli php5-mysql
#apt-get -y install php5-cli php5-mysql
php
-q
install.php
--autoinstall
=
/tmp/isp.conf.php
php
-q
install.php
--autoinstall
=
/tmp/isp.conf.php
echo
"Go to: https://
$serverIP
:8080"
}
}
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