mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
Update upgrade
This commit is contained in:
parent
e65a6e3fd8
commit
963b417c96
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,11 @@ if [ -z "${redis_db:-}" ]; then
|
||||||
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "${admin_pass:-}" ]; then
|
||||||
|
admin_pass=$(ynh_string_random --length=24)
|
||||||
|
ynh_app_setting_set --app=$app --key=admin_pass --value=$admin_pass
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${secrets_peertube:-}" ]; then
|
if [ -z "${secrets_peertube:-}" ]; then
|
||||||
ynh_print_info --message="Generating and storing PeerTube secrets..."
|
ynh_print_info --message="Generating and storing PeerTube secrets..."
|
||||||
secrets_peertube=$(ynh_string_random --length=24)
|
secrets_peertube=$(ynh_string_random --length=24)
|
||||||
|
@ -146,6 +151,7 @@ ynh_script_progression --message="Installing $app plugin..."
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run plugin:install -- --npm-name peertube-plugin-auth-ldap
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run plugin:install -- --npm-name peertube-plugin-auth-ldap
|
||||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run plugin:install -- --npm-name peertube-plugin-livechat
|
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run plugin:install -- --npm-name peertube-plugin-livechat
|
||||||
|
echo "$admin_pass" | ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run reset-password -- -u root
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue