1
0
Fork 0
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:
liberodark 2019-09-28 04:34:16 +02:00 committed by GitHub
parent cb6c5a94d7
commit 428f8ead5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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