rename to miaou-server

This commit is contained in:
pvincent
2024-04-29 10:00:51 +04:00
parent bb7094e424
commit bd34f32b2d
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -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
---------------- ----------------
+7 -7
View File
@@ -353,16 +353,16 @@ function miaou_configfiles() {
} }
function opt_link() { function opt_link() {
if [[ $MIAOU_BASEDIR != '/opt/miaou' ]]; then if [[ $MIAOU_BASEDIR != '/opt/miaou-server' ]]; then
if [[ -L '/opt/miaou' && -d '/opt/miaou' && $(readlink /opt/miaou) == "$MIAOU_BASEDIR" ]]; then if [[ -L '/opt/miaou-server' && -d '/opt/miaou-server' && $(readlink /opt/miaou-server) == "$MIAOU_BASEDIR" ]]; then
echo "symbolic link /opt/miaou already set up!" echo "symbolic link /opt/miaou-server already set up!"
else else
sudo rm -f /opt/miaou sudo rm -f /opt/miaou-server
sudo ln -s "$MIAOU_BASEDIR" /opt/miaou sudo ln -s "$MIAOU_BASEDIR" /opt/miaou-server
echo "symbolic link /opt/miaou successfully defined!" 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
} }
+1 -1
View File
@@ -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