Browse Source

alias ll creation date

main
pvincent 7 months ago
parent
commit
76a306717a
  1. 3
      lib/functions.sh
  2. 2
      lib/install.sh
  3. 2
      scripts/lxc-miaou-create

3
lib/functions.sh

@ -509,8 +509,7 @@ function install_miaou_bash() {
sudo apt install -y curl wget
echo "installing miaou-bash..."
curl https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s -- --host
export PATH=$PATH:/opt/miaou-bash/tools/
curl https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh | sudo bash -s
echo "OK"
else
echo "addon <miaou-bash> already installed!"

2
lib/install.sh

@ -190,7 +190,7 @@ EOF
set_alias 'sameuser' "exec @ARG1@ -- su --whitelist-environment container,container_hostname - $(whoami)"
set_alias 'login' 'exec @ARGS@ --mode interactive -- /bin/bash -c $@${user:-root} - exec su --whitelist-environment container,container_hostname - '
set_alias 'll' 'list -c ns4mDN'
set_alias 'll' 'list -c ns4mDNc'
# test environment container hostname
local env_container_hostname

2
scripts/lxc-miaou-create

@ -109,7 +109,7 @@ EOF
lxc config device add "$CONTAINER" SHARED disk source="$HOME/LXD/SHARED/$CONTAINER" path=/mnt/SHARED -q
lxc config device add "$CONTAINER" TOOLBOX disk source=/TOOLBOX path=/TOOLBOX readonly=true -q
lxc config device add "$CONTAINER" MIAOU_BASH disk source=$(realpath /opt/miaou-bash) path=/opt/miaou-bash readonly=true -q
lxc config device add "$CONTAINER" MIAOU-BASH disk source=/opt/miaou-bash path=/opt/miaou-bash readonly=true -q
# environment variables
lxc config set "$CONTAINER" environment.PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/miaou-bash/tools:/TOOLBOX -q

Loading…
Cancel
Save