1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00
outline_ynh/scripts/_common.sh

25 lines
674 B
Bash
Raw Normal View History

2021-09-21 00:25:53 +02:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
2023-11-26 17:35:30 +01:00
NODEJS_VERSION=20
2021-09-23 20:12:33 +02:00
2021-09-21 00:25:53 +02:00
#=================================================
# PERSONAL HELPERS
#=================================================
2022-04-18 18:45:37 +02:00
# FIXME : to be replaced in the future by ynh_string_random(hex)
2021-11-11 18:06:47 +01:00
ynh_hex_32_random() {
2022-04-18 11:17:51 +02:00
echo "$(tr -dc 'A-F0-9' < /dev/urandom | head -c64)"
2021-11-11 18:06:47 +01:00
}
2021-09-21 00:25:53 +02:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================