mirror of
https://github.com/YunoHost-Apps/cockpit_ynh.git
synced 2024-09-03 18:16:26 +02:00
update
This commit is contained in:
parent
c6f57fba8c
commit
9f1581adec
1 changed files with 18 additions and 14 deletions
|
@ -10,22 +10,24 @@ final_path=/opt/yunohost/$app
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Stop emby-server service
|
# Stop cockpit service
|
||||||
systemctl stop emby-server
|
systemctl stop cockpit
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_app_setting_set $app final_path $final_path
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source "$final_path"
|
|
||||||
|
|
||||||
#==============================================
|
#==============================================
|
||||||
# INSTALL PLEX
|
# INSTALL DEPS
|
||||||
#==============================================
|
#==============================================
|
||||||
|
|
||||||
dpkg --install $final_path/emby-server-deb*
|
## Install the backports repo for debian
|
||||||
|
echo 'deb http://deb.debian.org/debian stretch-backports main' > \
|
||||||
|
/etc/apt/sources.list.d/$app.list
|
||||||
|
|
||||||
|
ynh_package_update
|
||||||
|
|
||||||
|
#==============================================
|
||||||
|
# INSTALL COCKPIT
|
||||||
|
#==============================================
|
||||||
|
|
||||||
|
ynh_package_install cockpit
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -51,6 +53,8 @@ dpkg --install $final_path/emby-server-deb*
|
||||||
# ynh_app_setting_set "$app" unprotected_uris "/"
|
# ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# Start emby-server service
|
rm /etc/apt/sources.list.d/$app.list
|
||||||
systemctl start emby-server
|
|
||||||
|
# Start cockpit service
|
||||||
|
systemctl start cockpit
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue