mirror of
https://github.com/YunoHost-Apps/matterbridge_ynh.git
synced 2024-09-03 19:36:24 +02:00
Update upgrade
This commit is contained in:
parent
cb6c5a94d7
commit
428f8ead5d
1 changed files with 16 additions and 10 deletions
|
@ -11,7 +11,7 @@ final_path=/opt/yunohost/$app
|
|||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Stop emby-server service
|
||||
systemctl stop emby-server
|
||||
systemctl stop matterbridge
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
|
@ -21,12 +21,6 @@ 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
|
||||
#==============================================
|
||||
|
||||
dpkg --install $final_path/emby-server-deb*
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -34,7 +28,6 @@ dpkg --install $final_path/emby-server-deb*
|
|||
# Create a dedicated nginx config
|
||||
#ynh_add_nginx_config
|
||||
|
||||
|
||||
#=================================================
|
||||
# UPGRADE CONFIG
|
||||
#=================================================
|
||||
|
@ -51,6 +44,19 @@ dpkg --install $final_path/emby-server-deb*
|
|||
# ynh_app_setting_set "$app" unprotected_uris "/"
|
||||
#fi
|
||||
|
||||
# Start emby-server service
|
||||
systemctl start emby-server
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
### For security reason, any app should set the permissions to root: before anything else.
|
||||
### Then, if write authorization is needed, any access should be given only to directories
|
||||
### that really need such authorization.
|
||||
|
||||
# Set permissions to app files
|
||||
chown -R $app: $final_path
|
||||
|
||||
# Start emby-server service
|
||||
systemctl start matterbridge
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue