mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
MPD extension
This commit is contained in:
parent
91157dd217
commit
4b3dce0d23
1 changed files with 7 additions and 1 deletions
|
@ -44,12 +44,18 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
# some legacy installs and you therefore want to initiaze stuff during upgrade)
|
||||
#
|
||||
|
||||
# If db_name doesn't exist, create it
|
||||
# If mpd_port doesn't exist, create it
|
||||
if [ -z "$mpd_port" ]; then
|
||||
mpd_port=0
|
||||
ynh_app_setting_set --app=$app --key=mpd_port --value=$mpd_port
|
||||
fi
|
||||
|
||||
if [ $mpd_port -eq 0 ]; then
|
||||
mpd_state="false"
|
||||
else
|
||||
mpd_state="true"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue