Split install for non-admin users
The target laptop account has no sudo. install.sh now runs without root once the system packages exist; if they're missing and the account can't sudo it prints the exact command and stops. New install-system.sh holds the one-time "sudo apt install python3-tk python3-venv git" for an admin account. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# EINMALIG von einem Konto mit Administrator-Rechten ausführen (Patrick).
|
||||
# Installiert die System-Pakete, die die App braucht – danach kann das
|
||||
# normale Benutzerkonto ./install.sh ohne sudo ausführen.
|
||||
set -euo pipefail
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y python3-tk python3-venv git
|
||||
|
||||
echo
|
||||
echo "System-Pakete installiert. Jetzt als das normale Konto: ./install.sh"
|
||||
Reference in New Issue
Block a user