Skip to content

Instantly share code, notes, and snippets.

@sleepm
Created January 27, 2019 11:13
Show Gist options
  • Save sleepm/9c41b570c2810309370d8155edab5b35 to your computer and use it in GitHub Desktop.
Save sleepm/9c41b570c2810309370d8155edab5b35 to your computer and use it in GitHub Desktop.
manually update phpMyAdmin
#!/bin/bash
wget https://files.phpmyadmin.net/phpMyAdmin/"$1"/phpMyAdmin-"$1"-all-languages.zip
unzip phpMyAdmin-"$1"-all-languages.zip
if [ -f 'phpmyadmin/config.inc.php' ]; then
cp phpmyadmin/config.inc.php phpMyAdmin-"$1"-all-languages/
fi
rm -rf phpmyadmin
mv phpMyAdmin-"$1"-all-languages phpmyadmin
chown -R www-data:www-data phpmyadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment