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:
parent
caecf7a3f8
commit
e288386605
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ admin=$(sudo yunohost app setting phpmyadmin admin)
|
|||
# Remove trailing "/" for next commands
|
||||
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
|
||||
final_path=/var/www/phpmyadmin
|
||||
version=$(cat upstream_version)
|
||||
|
|
Loading…
Reference in a new issue