maj setup pour compat docker
This commit is contained in:
parent
9f06ffa6f4
commit
e47fa53336
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue