add pkg
This commit is contained in:
25
install.sh
Executable file
25
install.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
NAME="aios"
|
||||
TARBALL="aios.tar.gz"
|
||||
DEST="/var/lib/machines/$NAME"
|
||||
|
||||
if [[ ! -f "$TARBALL" ]]; then
|
||||
echo "error: $TARBALL not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== aios install ==="
|
||||
|
||||
mkdir -p "$DEST"
|
||||
tar xzf "$TARBALL" -C "$DEST"
|
||||
|
||||
mkdir -p /etc/systemd/nspawn
|
||||
cp cfg/aios.nspawn /etc/systemd/nspawn/$NAME.nspawn
|
||||
|
||||
echo "=== install complete ==="
|
||||
echo ""
|
||||
echo " sudo machinectl start $NAME"
|
||||
echo " sudo machinectl shell $NAME /bin/su - ai"
|
||||
Reference in New Issue
Block a user