mirror of
https://github.com/YunoHost-Apps/peertube_remote_runner_ynh.git
synced 2024-09-03 19:56:21 +02:00
register the runner (again)
This commit is contained in:
parent
4b296e36bb
commit
d9cad365bf
1 changed files with 11 additions and 0 deletions
|
@ -58,6 +58,17 @@ systemctl enable $app.service --quiet
|
||||||
|
|
||||||
yunohost service add $app --description="Peertube remote runner" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Peertube remote runner" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RUNNER REGISTRATION
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_app_setting_get --app=$app --key='runner_id'
|
||||||
|
|
||||||
|
pushd "$install_dir"
|
||||||
|
ynh_use_nodejs
|
||||||
|
ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_node "$install_dir/node_modules/@peertube/peertube-runner" register --url $peertube_url --registration-token $runner_token --runner-name $app\_$runner_id
|
||||||
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue