rename to miaou-server
This commit is contained in:
@@ -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
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user