maj setup pour compat docker

This commit is contained in:
Jephté Clain 2023-10-05 13:54:02 +04:00
parent 9f06ffa6f4
commit e47fa53336
3 changed files with 13 additions and 10 deletions

11
lib/setup.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$(dirname -- "$0")/../load.sh" || exit 1
[ "$(id -u)" -eq 0 ] || die "Ce script doit être lancé avec les droits root"
cd "$MYDIR/.."
[ -n "$1" ] && dest="$1" || dest="$(pwd)"
estep "Maj /etc/nucore.sh"
sed "s|@@""dest""@@|$dest|g" load.sh >/etc/nucore.sh

View File

@ -1,9 +1,6 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$@" || exit 1
source "$ULIBDIR/ulib" || exit 1
urequire DEFAULTS
cd "$scriptdir/../.."
# supprimer les fichiers de VCS
rm -rf .git
rm -rf "$srcdir/.git"

View File

@ -1,10 +1,5 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$@" || exit 1
source "$ULIBDIR/ulib" || exit 1
urequire DEFAULTS
cd "$scriptdir/../.."
sed "s|@@""dest""@@|$dest|g" load.sh >/etc/nucore.sh
exit 0
"$srcdir/lib/setup.sh" "$dest"