Browse Source

rename to miaou-server

main
pvincent 7 months ago
parent
commit
bd34f32b2d
  1. 6
      README.md
  2. 14
      lib/install.sh
  3. 2
      scripts/lxc-miaou-create

6
README.md

@ -45,7 +45,7 @@ Debian12 fresh install
* # log as normal user with sudo group * # log as normal user with sudo group
* sudo apt install -y git * 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: * # EITHER:
* ./miaou/lib/install.sh dev * ./miaou/lib/install.sh dev
* # OR: * # OR:
@ -59,12 +59,12 @@ Nested container test drive
* CONTAINER=nested * CONTAINER=nested
* lxc-miaou-create $CONTAINER -o sameuser,nesting * lxc-miaou-create $CONTAINER -o sameuser,nesting
* lxc sameuser $CONTAINER * lxc sameuser $CONTAINER
* /opt/miaou/lib/install.sh dev
* /opt/miaou-server/lib/install.sh dev
Hardening server Hardening server
---------------- ----------------
* /opt/miaou/lib/harden.sh
* /opt/miaou-server/lib/harden.sh
Development mode Development mode
---------------- ----------------

14
lib/install.sh

@ -353,16 +353,16 @@ function miaou_configfiles() {
} }
function opt_link() { 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 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 fi
else else
echo "real path /opt/miaou already set up!"
echo "real path /opt/miaou-server already set up!"
fi fi
} }

2
scripts/lxc-miaou-create

@ -117,7 +117,7 @@ EOF
if [[ "$OPTION_NESTING" == true ]]; then if [[ "$OPTION_NESTING" == true ]]; then
lxc config set "$CONTAINER" security.nesting true -q 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 fi
lxc start "$CONTAINER" -q lxc start "$CONTAINER" -q

Loading…
Cancel
Save