diff --git a/ruinst b/ruinst index c456272..e3cf14a 100755 --- a/ruinst +++ b/ruinst @@ -270,6 +270,11 @@ if [ -n "$make_archive" ]; then fi ## Déploiement + +# sur l'hôte distant, ne rendre interactif qu'à partir de -yy +rinteraction=$__interaction +[ $rinteraction -lt 2 ] && rinteraction=$(($rinteraction + 1)) + for host in "${hosts[@]}"; do if [ "$host" == "localhost" ]; then etitle -s "Déploiement sur l'hôte local" @@ -288,9 +293,10 @@ for host in "${hosts[@]}"; do scp -S "$SSH" "$archive" "$user@$host:" || die estep "Lancement du script de déploiement" "$SSH" -qt "$user@$host" "\ +__interaction=$rinteraction __estack=$(qval "$__estack") __tlevel=$(qval "$__tlevel") -export __estack __tlevel +export __interaction __estack __tlevel ${UTOOLS_LANG:+UTOOLS_LANG='$UTOOLS_LANG'; export UTOOLS_LANG }$(qvals "./$archivename" ${tmproot:+--tmproot "$tmproot"} -- MYHOST="$host" "$@")" eend diff --git a/rwoinst b/rwoinst index 776b46c..a415709 100755 --- a/rwoinst +++ b/rwoinst @@ -242,6 +242,11 @@ etitle "Création de l'archive pour le déploiement" \ "$scriptdir/mkusfx" --bare --tmp-archive -o "$archive" "$workdir" -- ./woinst --is-tmpdir "${bundles[@]}" || die ## Déploiement + +# sur l'hôte distant, ne rendre interactif qu'à partir de -yy +rinteraction=$__interaction +[ $rinteraction -lt 2 ] && rinteraction=$(($rinteraction + 1)) + for host in "${hosts[@]}"; do if [ "$host" == "localhost" ]; then etitle "Déploiement sur l'hôte local" \ @@ -259,9 +264,10 @@ for host in "${hosts[@]}"; do scp -S "$SSH" "$archive" "$user@$host:" || die estep "Lancement du script de déploiement" "$SSH" -qt "$user@$host" "\ +__interaction=$rinteraction __estack=$(qval "$__estack") __tlevel=$(qval "$__tlevel") -export __estack __tlevel +export __interaction __estack __tlevel ${UTOOLS_LANG:+UTOOLS_LANG='$UTOOLS_LANG'; export UTOOLS_LANG }$(qvals "./$archivename" ${tmproot:+--tmproot "$tmproot"} -- MYHOST="$host" "$@")" eend