19 lines
412 B
Bash
19 lines
412 B
Bash
#!/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."
|