From 2cc7f3582381a00b727629a191abf437ba93f3b5 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Sun, 8 Aug 2021 22:44:05 +0200 Subject: [PATCH 1/2] Set the password during install --- check_process | 3 ++- manifest.json | 9 +++++++++ scripts/install | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) 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 #================================================= From edc9f70db9be39209d83a83678cde87424ce8394 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Mon, 9 Aug 2021 02:06:48 +0200 Subject: [PATCH 2/2] fix --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index e7feee0..eb6f200 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