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

Merge pull request #2 from Tagadda/testing

Set the password during install
This commit is contained in:
Éric Gaspar 2021-08-10 18:46:37 +02:00 committed by GitHub
commit a82585bbf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 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

@ -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
#=================================================