diff --git a/scripts/_common.sh b/scripts/_common.sh index 9c6dc0c..28612a7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -13,6 +13,10 @@ NODEJS_VERSION=14 # PERSONAL HELPERS #================================================= +ynh_hex_32_random() { + echo "$(openssl rand -hex 32)" +} + #================================================= # EXPERIMENTAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 0eae598..33ddbd5 100755 --- a/scripts/install +++ b/scripts/install @@ -38,11 +38,8 @@ else echo "English" fi -#secret_key=$(ynh_string_random --length=64) -#utils_secret=$(ynh_string_random --length=64) - -secret_key=`openssl rand -hex 32` -utils_secret=`openssl rand -hex 32` +secret_key=$(ynh_hex_32_random) +utils_secret=$(ynh_hex_32_random) slack_key=$YNH_APP_ARG_SLACK_KEY slack_secret=$YNH_APP_ARG_SLACK_SECRET