mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
Fix linter
This commit is contained in:
parent
68457bbd5d
commit
b7d0141eb2
4 changed files with 4 additions and 14 deletions
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib \
|
pkg_dependencies="acl build-essential python3-dev python3-pip python3-venv git postgresql postgresql-contrib \
|
||||||
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly lsb-base \
|
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly lsb-base \
|
||||||
python3-gst-1.0 python3-tornado (>= 4.4) debconf python3-pkg-resources python3-pykka python3-requests \
|
python3-gst-1.0 python3-tornado (>= 4.4) debconf python3-pkg-resources python3-pykka python3-requests \
|
||||||
gstreamer1.0-alsa gstreamer1.0-pulseaudio gstreamer1.0-tools"
|
gstreamer1.0-alsa gstreamer1.0-pulseaudio gstreamer1.0-tools"
|
||||||
|
|
|
@ -105,8 +105,8 @@ then
|
||||||
ynh_permission_url --permission="main" --add_url="$new_domain/mopidy/ws" --remove_url="$old_domain/mopidy/ws"
|
ynh_permission_url --permission="main" --add_url="$new_domain/mopidy/ws" --remove_url="$old_domain/mopidy/ws"
|
||||||
ynh_permission_url --permission="main" --add_url="$new_domain/local" --remove_url="$old_domain/local"
|
ynh_permission_url --permission="main" --add_url="$new_domain/local" --remove_url="$old_domain/local"
|
||||||
ynh_permission_url --permission="main" --add_url="$new_domain/musicbox_webclient" --remove_url="$old_domain/musicbox_webclient"
|
ynh_permission_url --permission="main" --add_url="$new_domain/musicbox_webclient" --remove_url="$old_domain/musicbox_webclient"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC MODIFICATIONS
|
# SPECIFIC MODIFICATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -102,7 +102,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE YUNOHOST DIRECTORIES
|
# CREATE YUNOHOST DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating yunohost directories..."
|
ynh_script_progression --message="Creating YunoHost directories..."
|
||||||
|
|
||||||
ynh_multimedia_build_main_dir # /home/yunohost.multimedia
|
ynh_multimedia_build_main_dir # /home/yunohost.multimedia
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ ynh_systemd_action --service_name=nginx --action=reload
|
||||||
#=================================================
|
#=================================================
|
||||||
# PROVIDE ADDITIONAL SHELL COMAND
|
# PROVIDE ADDITIONAL SHELL COMAND
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Provide additional shell comand..."
|
ynh_script_progression --message="Provide additional shell command..."
|
||||||
|
|
||||||
cp -a ../sources/extra_files/mopidyctl "$cmd_file"
|
cp -a ../sources/extra_files/mopidyctl "$cmd_file"
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="$cmd_file"
|
ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="$cmd_file"
|
||||||
|
|
|
@ -27,17 +27,10 @@ work_dir="/home/yunohost.app/$app"
|
||||||
conf_file="$final_path/$app.conf"
|
conf_file="$final_path/$app.conf"
|
||||||
cmd_file="/usr/local/bin/mopidyctl"
|
cmd_file="/usr/local/bin/mopidyctl"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
### This helper will compare the version of the currently installed app and the version of the upstream package.
|
|
||||||
### $upgrade_type can have 2 different values
|
|
||||||
### - UPGRADE_APP if the upstream app version has changed
|
|
||||||
### - UPGRADE_PACKAGE if only the YunoHost package has changed
|
|
||||||
### ynh_check_app_version_changed will stop the upgrade if the app is up to date.
|
|
||||||
### UPGRADE_APP should be used to upgrade the core app only if there's an upgrade to do.
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -127,11 +120,8 @@ ynh_add_systemd_config --others_var="conf_file start_file" # substitute __CO
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
|
||||||
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
|
|
||||||
ynh_backup_if_checksum_is_different --file="$conf_file"
|
ynh_backup_if_checksum_is_different --file="$conf_file"
|
||||||
|
|
||||||
|
|
||||||
cp ../conf/app.conf "$conf_file"
|
cp ../conf/app.conf "$conf_file"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file="$conf_file"
|
ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file="$conf_file"
|
||||||
|
|
Loading…
Add table
Reference in a new issue