Initial commit for v1.0.0
This commit is contained in:
9
distfiles/etc/apache2/conf-available/adminer.conf
Normal file
9
distfiles/etc/apache2/conf-available/adminer.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# Adminer default Apache configuration
|
||||
|
||||
Alias /databases /var/www/adminer
|
||||
|
||||
<Directory /var/www/adminer>
|
||||
AllowOverride Options
|
||||
Options FollowSymLinks
|
||||
DirectoryIndex adminer.php
|
||||
</Directory>
|
||||
2
distfiles/opt/adminer/_.htaccess
Normal file
2
distfiles/opt/adminer/_.htaccess
Normal file
@@ -0,0 +1,2 @@
|
||||
php_value upload_max_filesize 1G
|
||||
php_value post_max_size 1G
|
||||
18
distfiles/usr/local/bin/upgrade-adminer.sh
Normal file
18
distfiles/usr/local/bin/upgrade-adminer.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# upgrade-adminer.sh
|
||||
|
||||
# test for superuser rights
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run with superuser privileges. Try sudo ./upgrade-adminer.sh"
|
||||
abort_exit
|
||||
fi
|
||||
|
||||
echo "Getting the latest adminer..."
|
||||
|
||||
mkdir -p /opt/adminer
|
||||
|
||||
sudo -u www-data wget -O /opt/adminer/adminer.php https://www.adminer.org/latest-mysql-en.php
|
||||
|
||||
chown -R www-data:www-data /opt/adminer
|
||||
|
||||
echo "...done."
|
||||
Reference in New Issue
Block a user