1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncast_ynh.git synced 2024-09-03 19:56:20 +02:00

Set the password during install

This commit is contained in:
Tagada 2021-08-08 22:44:05 +02:00
parent 0058e5bae1
commit 2cc7f35823
3 changed files with 19 additions and 1 deletions

View file

@ -4,6 +4,7 @@
path="/path"
admin="john"
is_public=1
password="1Strong-Password"
; Checks
pkg_linter=1
setup_sub_dir=0
@ -22,4 +23,4 @@ Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=1Strong-Password

View file

@ -52,6 +52,15 @@
"fr": "Si cette case est cochée, Owncast sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
},
"default": true
},
{
"name": "password",
"type": "password",
"help": {
"en": "Admin password and the steamkey.",
"fr": "Mot de passe admin et streamkey."
},
"example": "Choose a password"
}
]
}

View file

@ -125,6 +125,14 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# SETUP APPLICATION PASSWORD
#=================================================
pushd $final_path
ynh_exec_as $app $final_path/owncast -streamkey $password
popd
#=================================================
# GENERIC FINALIZATION
#=================================================