diff --git a/scripts/upgrade b/scripts/upgrade index b88f566..30b980e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -212,7 +212,7 @@ chown -R $app:www-data "$datadir" if [ -z "$secrets_peertube" ]; then ynh_script_progression --message="Generating and storing PeerTube secrets..." - secrets_peertube=$(openssl rand -hex 32) + secrets_peertube=$(ynh_string_random --length=24) ynh_app_setting_set --app=$app --key=secrets_peertube --value=$secrets_peertube fi