Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Immo-Ka Admin iOS8# File : Scripts/session-essai.sh9# Description : demande au nœud de préproduction un jeton de session10# d'administration d'essai et le range dans11# build/session.env (dossier ignoré par git) pour les tests12# et les captures. Préproduction seulement. usage :13# session-essai.sh14# Module : Scripts15# Repository : https://git.spboucher.ai/immo-ka-admin-ios16# Project Website : https://www.immo-ka.com17# Created : 2026-11-3018# Last Modified : 2026-11-3019#20# Author : Simon-Pierre Boucher21# Position : Professor of Finance22# Institution : Université du Québec en Outaouais (UQO)23# Organization : SP Boucher24# Website : https://spboucher.ai25# Git : https://git.spboucher.ai26#27# Preferred Contact: support@spboucher.ai28# Technical Contact: dev@spboucher.ai29# Security/Admin : admin@spboucher.ai30#31# Copyright (c) 202632# Simon-Pierre Boucher33# All rights reserved where applicable. This file is governed by the34# applicable project license, copyright notices and relevant law.35# Existing third-party rights and notices remain unaffected.36#37# License : None specified (no license file in this repository)38#39# Do not embed credentials, private keys, access tokens,40# certificates or confidential personal information.41#42# =============================================================================43# END OF SP BOUCHER SOURCE HEADER44# =============================================================================4546set -euo pipefail47cd "$(dirname "$0")/.."48mkdir -p build49JSON="$(ssh -o ConnectTimeout=15 M4M64b '~/apps/immo-ka-v3/.venv/bin/python /tmp/session_admin_essai.py')"50( umask 077; python3 -c "51import json,sys52d=json.loads(sys.argv[1])53print('IMMOKA_ADMIN_BASE=%s' % d['base']); print('IMMOKA_ADMIN_TOKEN=%s' % d['token'])54sys.stderr.write('session d\'essai : %s (%s)\n' % (d['admin']['name'], d['base']))55" "$JSON" > build/session.env )56