Initial commit for v1.0.0

This commit is contained in:
2026-02-12 12:48:32 -05:00
commit 354fb7dcfd
6 changed files with 625 additions and 0 deletions

View 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>

View File

@@ -0,0 +1,2 @@
php_value upload_max_filesize 1G
php_value post_max_size 1G

View 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."