Update bookworm: spooky disclaimer

This commit is contained in:
Alexandre Aubin 2024-01-22 22:14:48 +01:00 committed by GitHub
parent 13a593b853
commit 87814f9371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -294,6 +294,23 @@ EOF
choice="$(echo $choice | tr '[A-Z]' '[a-z]')"
[[ "$choice" == "yes" ]] || [[ "$choice" == "y" ]] || { error "Aborting"; return 1; }
if [[ "$DISTRIB" == "unstable" ]]
then
cat << EOF | tee -a $YUNOHOST_LOG
• You are installing the unstable/alpha version of YunoHost 12/Bookworm.
You should be warned that THIS IS ALPHA-STAGE DEVELOPMENT.
WE ABSOLUTELY DISCOURAGE ANY USE OF THIS VERSION
IN A PRODUCTION CONTEXT, THIS IS ONLY MEANT FOR *TESTING*.
THINGS **WILL** BREAK.
EOF
read -p " Type 'Yes, I understand' if you understand: " choice < /dev/tty
[[ "$choice" == "Yes, I understand" ]] || { error "Aborting"; return 1; }
fi
# SSH config warning
if [[ -f /etc/ssh/sshd_config ]]
then