diff --git a/check_process b/check_process index 4043ed0..7a7f0f2 100755 --- a/check_process +++ b/check_process @@ -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 diff --git a/manifest.json b/manifest.json index d9254fc..e85140e 100755 --- a/manifest.json +++ b/manifest.json @@ -52,6 +52,15 @@ "fr": "Si cette case est cochée, Owncast sera accessible aux personnes n’ayant 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" } ] } diff --git a/scripts/install b/scripts/install index 663c398..e7feee0 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================