Upload files to ''
This commit is contained in:
100
phpma.sh
Normal file
100
phpma.sh
Normal file
@@ -0,0 +1,100 @@
|
||||
###============================================================
|
||||
## Ubuntu 18.04 PHPMyAdmin Updater
|
||||
###============================================================
|
||||
## Zet comments hieronder:
|
||||
#
|
||||
# Om de backup te verwijderen gebruik:
|
||||
# rm -rf /usr/share/phpmyadmin.bak
|
||||
#
|
||||
##=============================================================
|
||||
|
||||
cd /tmp
|
||||
mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak
|
||||
mkdir /usr/share/phpmyadmin/
|
||||
wget https://files.phpmyadmin.net/phpMyAdmin/4.8.3/phpMyAdmin-4.8.3-all-languages.tar.gz
|
||||
tar xzf phpMyAdmin-4.8.3-all-languages.tar.gz
|
||||
mv phpMyAdmin-4.8.3-all-languages/* /usr/share/phpmyadmin
|
||||
|
||||
# Vervang huidige config met een correcte config
|
||||
cat <<EOF > /usr/share/phpmyadmin/libraries/vendor_config.php
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* File for vendor customisation, you can change here paths or some behaviour,
|
||||
* which vendors such as Linux distributions might want to change.
|
||||
*
|
||||
* For changing this file you should know what you are doing. For this reason
|
||||
* options here are not part of normal configuration.
|
||||
*
|
||||
* @package PhpMyAdmin
|
||||
*/
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to vendor autoload file. Useful when you want to
|
||||
* have have vendor dependencies somewhere else.
|
||||
*/
|
||||
define('AUTOLOAD_FILE', './vendor/autoload.php');
|
||||
|
||||
/**
|
||||
* Directory where cache files are stored.
|
||||
*/
|
||||
define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');
|
||||
|
||||
/**
|
||||
* Path to changelog file, can be gzip compressed. Useful when you want to
|
||||
* have documentation somewhere else, eg. /usr/share/doc.
|
||||
*/
|
||||
define('CHANGELOG_FILE', './ChangeLog');
|
||||
|
||||
/**
|
||||
* Path to license file. Useful when you want to have documentation somewhere
|
||||
* else, eg. /usr/share/doc.
|
||||
*/
|
||||
define('LICENSE_FILE', './LICENSE');
|
||||
|
||||
/**
|
||||
* Directory where SQL scripts to create/upgrade configuration storage reside.
|
||||
*/
|
||||
define('SQL_DIR', './sql/');
|
||||
|
||||
/**
|
||||
* Directory where configuration files are stored.
|
||||
* It is not used directly in code, just a convenient
|
||||
* define used further in this file.
|
||||
*/
|
||||
define('CONFIG_DIR', '/etc/phpmyadmin/');
|
||||
|
||||
/**
|
||||
* Filename of a configuration file.
|
||||
*/
|
||||
define('CONFIG_FILE', CONFIG_DIR . 'config.inc.php');
|
||||
|
||||
/**
|
||||
* Filename of custom header file.
|
||||
*/
|
||||
define('CUSTOM_HEADER_FILE', CONFIG_DIR . 'config.header.inc.php');
|
||||
|
||||
/**
|
||||
* Filename of custom footer file.
|
||||
*/
|
||||
define('CUSTOM_FOOTER_FILE', CONFIG_DIR . 'config.footer.inc.php');
|
||||
|
||||
/**
|
||||
* Default value for check for version upgrades.
|
||||
*/
|
||||
define('VERSION_CHECK_DEFAULT', true);
|
||||
|
||||
/**
|
||||
* Path to files with compiled locales (*.mo)
|
||||
*/
|
||||
define('LOCALE_PATH', './locale/');
|
||||
|
||||
/**
|
||||
* Avoid referring to nonexistent files (causes warnings when open_basedir
|
||||
* is used)
|
||||
*/
|
||||
define('K_PATH_IMAGES', '');
|
||||
EOF
|
||||
Reference in New Issue
Block a user