mirror of
https://github.com/YunoHost-Apps/tvheadend_ynh.git
synced 2024-10-01 13:34:50 +02:00
Cleanup, fix password not saved in db
This commit is contained in:
parent
7dda7b580b
commit
d5cb594fb3
4 changed files with 13 additions and 6 deletions
|
@ -9,6 +9,13 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# INITIALIZE AND STORE SETTINGS
|
||||
#=================================================
|
||||
|
||||
# Passwords are not saved by default.
|
||||
ynh_app_setting_set --app="$app" --key=password --value="$password"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -45,7 +52,7 @@ ynh_script_progression --message="Adding system configurations related to $app..
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports $port_stream
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports="$port_stream"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -16,9 +16,9 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
|
||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if ynh_exec_warn_less yunohost service status $app >/dev/null; then
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||
yunohost service remove $app
|
||||
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
|
||||
ynh_script_progression --message="Removing "$app" service integration..." --weight=1
|
||||
yunohost service remove "$app"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -45,7 +45,7 @@ ynh_script_progression --message="Restoring system configurations related to $ap
|
|||
|
||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports $port_stream
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports="$port_stream"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -59,7 +59,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports $port_stream
|
||||
yunohost service add "$app" --description="TV streaming server and recorder" --needs_exposed_ports="$port_stream"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Add table
Reference in a new issue