Browse Source

readme for fressh install

main
pvincent 9 months ago
parent
commit
b30c73ed8e
  1. 3
      README.md
  2. 7
      lib/install.sh

3
README.md

@ -55,7 +55,8 @@ Debian12 fresh install
* # log as normal user with sudo group * # log as normal user with sudo group
* apt install -y git * apt install -y git
* git clone https://git.artcode.re/miaou/miaou.git * git clone https://git.artcode.re/miaou/miaou.git
* ./miaou/lib/install.sh dev
* cd miaou
* ./lib/install.sh dev
Nested container test drive Nested container test drive
---------------------------- ----------------------------

7
lib/install.sh

@ -28,7 +28,7 @@ function prepare_lxd {
sudo groupadd --force "$NEW_GROUP" sudo groupadd --force "$NEW_GROUP"
sudo usermod --append --groups "$NEW_GROUP" "$(whoami)" sudo usermod --append --groups "$NEW_GROUP" "$(whoami)"
sg "$NEW_GROUP" -c "$0 SESSION_RELOAD_REQUIRED $TARGET $@"
sg "$NEW_GROUP" -c "$0 SESSION_RELOAD_REQUIRED $TARGET"
sg "$NEW_GROUP" -c bash sg "$NEW_GROUP" -c bash
kill -9 "$PPID" kill -9 "$PPID"
# no further processing because exec has been called! # no further processing because exec has been called!
@ -437,7 +437,7 @@ else
prepare_toolbox prepare_toolbox
add_toolbox_sudoers add_toolbox_sudoers
prepare_nftables prepare_nftables
prepare_lxd "$@"
prepare_lxd
preload_bookworm_image preload_bookworm_image
miaou_resolver miaou_resolver
miaou_evalfrombashrc miaou_evalfrombashrc
@ -447,8 +447,7 @@ else
if [[ "$SESSION_RELOAD_REQUIRED" == true ]]; then if [[ "$SESSION_RELOAD_REQUIRED" == true ]]; then
echoinfo "successful session installation" echoinfo "successful session installation"
echowarn "be aware: the current session has been reloaded, due to new group <$NEW_GROUP>."
echowarn "-> exit means kill!"
echowarn "be aware: the current session has been reloaded, due to new group <$NEW_GROUP>. Next time you type \`exit\`, this session will emit a kill signal!"
else else
echoinfo "successful installation" echoinfo "successful installation"
fi fi

Loading…
Cancel
Save