1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

support previous admin_user setting

This commit is contained in:
Julien Malik 2014-04-03 15:34:56 +02:00
parent caecf7a3f8
commit e288386605

View file

@ -8,6 +8,13 @@ admin=$(sudo yunohost app setting phpmyadmin admin)
# Remove trailing "/" for next commands # Remove trailing "/" for next commands
path=${path%/} path=${path%/}
# In older version, the admin setting was admin_user
if [[ -z "$admin" ]]; then
admin=$(sudo yunohost app setting phpmyadmin admin_user)
sudo yunohost app setting phpmyadmin admin_user -d
sudo yunohost app setting phpmyadmin admin -v $admin
fi
# Copy files to the right place # Copy files to the right place
final_path=/var/www/phpmyadmin final_path=/var/www/phpmyadmin
version=$(cat upstream_version) version=$(cat upstream_version)