'conf.sh' updaten
This commit is contained in:
13
conf.sh
13
conf.sh
@@ -5,9 +5,12 @@ mbranch=master
|
||||
if [ -z ${PHPMyadmin+x} ]; then echo 'Error $PHPMyadmin is not set, Setting default OFF' && PHPMyadmin=0;fi #check if Var is set
|
||||
if [ -z ${phpmyadminver+x} ]; then echo 'Error $phpmyadminver is not set, Setting default' && phpmyadminver="4.9.2" ; fi #check if Var is set
|
||||
|
||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/MySQL/mysqld-V8.cnf
|
||||
systemctl stop mysql
|
||||
|
||||
systemctl restart mysql
|
||||
rm /etc/mysql/mysql.conf.d/mysqld.cnf
|
||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/MySQL/mysqld-V8.cnf -O /etc/mysql/mysql.conf.d/mysqld.cnf
|
||||
|
||||
systemctl start mysql
|
||||
systemctl enable mysql
|
||||
|
||||
|
||||
@@ -15,9 +18,9 @@ if [ $PHPMyadmin = 1 ]; then
|
||||
mkdir -p /usr/share/phpmyadmin/
|
||||
mkdir -p /etc/phpmyadmin
|
||||
mkdir -p /var/lib/phpmyadmin/tmp/
|
||||
wget -q -t7 https://files.phpmyadmin.net/phpMyAdmin/$phpmyadminver/phpMyAdmin-$phpmyadminver-all-languages.tar.gz
|
||||
tar xzf phpMyAdmin-$phpmyadminver-all-languages.tar.gz
|
||||
mv phpMyAdmin-$phpmyadminver-all-languages/* /usr/share/phpmyadmin
|
||||
wget -q -t7 https://files.phpmyadmin.net/phpMyAdmin/$phpmyadminver/phpMyAdmin-$phpmyadminver-all-languages.tar.gz -O /tmp/phpMyAdmin.tar.gz
|
||||
tar xzf /tmp/phpMyAdmin.tar.gz -C /tmp/
|
||||
mv /tmp/phpMyAdmin-$phpmyadminver-all-languages/* /usr/share/phpmyadmin
|
||||
|
||||
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/phpmyadmin/vendor_config.php -O /usr/share/phpmyadmin/libraries/vendor_config.php
|
||||
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/phpmyadmin/config.footer.inc.php -O /etc/phpmyadmin/config.footer.inc.php
|
||||
|
||||
Reference in New Issue
Block a user