From bd34f32b2d01e78c8ffc48c0dbcb1029fd6d2eee Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 29 Apr 2024 10:00:51 +0400 Subject: [PATCH] rename to miaou-server --- README.md | 6 +++--- lib/install.sh | 14 +++++++------- scripts/lxc-miaou-create | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ae77674..36e6677 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Debian12 fresh install * # log as normal user with sudo group * sudo apt install -y git -* git clone https://git.artcode.re/miaou/miaou.git +* git clone https://git.artcode.re/miaou/miaou-server.git * # EITHER: * ./miaou/lib/install.sh dev * # OR: @@ -59,12 +59,12 @@ Nested container test drive * CONTAINER=nested * lxc-miaou-create $CONTAINER -o sameuser,nesting * lxc sameuser $CONTAINER - * /opt/miaou/lib/install.sh dev + * /opt/miaou-server/lib/install.sh dev Hardening server ---------------- -* /opt/miaou/lib/harden.sh +* /opt/miaou-server/lib/harden.sh Development mode ---------------- diff --git a/lib/install.sh b/lib/install.sh index 70b419a..e229e08 100755 --- a/lib/install.sh +++ b/lib/install.sh @@ -353,16 +353,16 @@ function miaou_configfiles() { } function opt_link() { - if [[ $MIAOU_BASEDIR != '/opt/miaou' ]]; then - if [[ -L '/opt/miaou' && -d '/opt/miaou' && $(readlink /opt/miaou) == "$MIAOU_BASEDIR" ]]; then - echo "symbolic link /opt/miaou already set up!" + if [[ $MIAOU_BASEDIR != '/opt/miaou-server' ]]; then + if [[ -L '/opt/miaou-server' && -d '/opt/miaou-server' && $(readlink /opt/miaou-server) == "$MIAOU_BASEDIR" ]]; then + echo "symbolic link /opt/miaou-server already set up!" else - sudo rm -f /opt/miaou - sudo ln -s "$MIAOU_BASEDIR" /opt/miaou - echo "symbolic link /opt/miaou successfully defined!" + sudo rm -f /opt/miaou-server + sudo ln -s "$MIAOU_BASEDIR" /opt/miaou-server + echo "symbolic link /opt/miaou-server successfully defined!" fi else - echo "real path /opt/miaou already set up!" + echo "real path /opt/miaou-server already set up!" fi } diff --git a/scripts/lxc-miaou-create b/scripts/lxc-miaou-create index c9ad75a..e497b00 100755 --- a/scripts/lxc-miaou-create +++ b/scripts/lxc-miaou-create @@ -117,7 +117,7 @@ EOF if [[ "$OPTION_NESTING" == true ]]; then lxc config set "$CONTAINER" security.nesting true -q - lxc config device add "$CONTAINER" miaou disk source=/opt/miaou path=/opt/miaou readonly=true -q + lxc config device add "$CONTAINER" miaou disk source=/opt/miaou-server path=/opt/miaou-server readonly=true -q fi lxc start "$CONTAINER" -q