1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kodi_ynh.git synced 2024-09-03 19:26:34 +02:00

Add Raspberry condition

This commit is contained in:
SylvainCecchetto 2017-09-28 07:54:48 +02:00
parent 17abcd81c9
commit 65db61cc5e
3 changed files with 11 additions and 3 deletions

View file

@ -5,7 +5,9 @@ Kodi for YunoHost
[Kodi](https://kodi.tv) transform your YunoHost server on media center that is designed to look great on your big screen TV but is just as home on a small screen. [Kodi](https://kodi.tv) transform your YunoHost server on media center that is designed to look great on your big screen TV but is just as home on a small screen.
**Shipped version:** 16.1 from jessie backports **Shipped version:**
* 16.1 on Debian from jessie backports
* 17.3 on Raspberry from official raspbian repo
[![Install Kodi with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kodi) [![Install Kodi with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kodi)
@ -16,7 +18,7 @@ Kodi for YunoHost
* You can launch Kodi with the ```sudo systemctl start kodi``` command * You can launch Kodi with the ```sudo systemctl start kodi``` command
## To do ## To do
* Test package on Raspberry (maybe Kodi is avaible in v17 on raspbian repo instead of v16 in debian jessie backports) * Test package on Raspberry
* Add option to launch Kodi at server startup * Add option to launch Kodi at server startup
* Add the control web interface to YunoHost user interface * Add the control web interface to YunoHost user interface
* Maybe we can launch Kodi from YunoHost web interface instead of SSH * Maybe we can launch Kodi from YunoHost web interface instead of SSH

View file

@ -57,9 +57,12 @@ sudo cp ../conf/kodi.service /etc/systemd/system/kodi.service
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES AND KODI
#================================================= #=================================================
arch=$(uname -m)
if [[ $arch != arm* ]]; then
sudo cp ../conf/kodi.list /etc/apt/sources.list.d/${app}.list sudo cp ../conf/kodi.list /etc/apt/sources.list.d/${app}.list
fi
ynh_package_update ynh_package_update
ynh_package_install xorg dbus-x11 kodi ynh_package_install xorg dbus-x11 kodi

View file

@ -26,7 +26,10 @@ launch_on_boot=$(ynh_app_setting_get $app launch_on_boot)
# Remove metapackage and its dependencies # Remove metapackage and its dependencies
sudo sed -i 's/allowed_users=anybody/allowed_users=console/' /etc/X11/Xwrapper.config sudo sed -i 's/allowed_users=anybody/allowed_users=console/' /etc/X11/Xwrapper.config
ynh_package_autoremove kodi xorg dbus-x11 ynh_package_autoremove kodi xorg dbus-x11
arch=$(uname -m)
if [[ $arch != arm* ]]; then
sudo rm -f "/etc/apt/sources.list.d/${app}.list" sudo rm -f "/etc/apt/sources.list.d/${app}.list"
fi
ynh_package_update ynh_package_update