added graps

This commit is contained in:
2026-09-19 12:46:23 +05:00
parent b5593fa7f4
commit bd973a641c
16 changed files with 735 additions and 1508 deletions
+24 -5
View File
@@ -113,7 +113,9 @@ echo "[1/5] Installing dependencies"
case "$PACKAGE_MANAGER" in
pacman)
pacman -Syu --needed --noconfirm \
# Do NOT use -Syu here. This installer must not upgrade the whole
# Arch system; it only installs the packages required by this app.
pacman -S --needed --noconfirm \
python \
python-pip
;;
@@ -156,7 +158,6 @@ case "$PACKAGE_MANAGER" in
esac
# ============================================================
# Verify Python
# ============================================================
@@ -174,6 +175,27 @@ echo "Python:"
echo
# ============================================================
# Prepare PAM administration group
# ============================================================
echo "Preparing PAM administration group"
if ! getent group pam >/dev/null 2>&1; then
echo "Creating system group: pam"
groupadd --system pam
fi
if ! id -nG root | tr " " "\n" | grep -qx "pam"; then
echo "Adding root to group: pam"
usermod -aG pam root
fi
echo "PAM group:"
getent group pam
echo
# ============================================================
# Create virtual environment
# ============================================================
@@ -194,9 +216,6 @@ fi
echo
echo "[3/5] Installing Python packages"
"$INSTALL_DIR/.venv/bin/python" -m pip install \
--upgrade pip
"$INSTALL_DIR/.venv/bin/python" -m pip install \
-r "$INSTALL_DIR/requirements.txt"