Skip to content

Commit

Permalink
regenconf/ssowat: tmp debug to see what's happening on the CI ..
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Sep 29, 2023
1 parent 385c131 commit 2c6445b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/conf_regen/01-yunohost
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ do_post_regen() {

getent passwd ynh-portal &>/dev/null || useradd --no-create-home --shell /usr/sbin/nologin --system --user-group ynh-portal
if [ ! -e /etc/yunohost/.ssowat_cookie_secret ]; then
# Tmp debug to try to see what's happening on the CI ...
echo "Initializing ssowat cookie secret" >&2
# NB: we need this to be exactly 32 char long, because it is later used as a key for AES256
dd if=/dev/urandom bs=1 count=1000 2>/dev/null | tr --complement --delete 'A-Za-z0-9' | head -c 32 > /etc/yunohost/.ssowat_cookie_secret
fi
Expand Down

0 comments on commit 2c6445b

Please sign in to comment.