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 84033d7..a75d67c 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 a6ba2f8..0436ae0 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC admin=$YNH_APP_ARG_ADMIN +password=$YNH_APP_ARG_PASSWORD architecture=$(ynh_detect_arch) app=$YNH_APP_INSTANCE_NAME @@ -115,6 +116,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 #=================================================