Update script now configures authbind/Port 80 automatically
This commit is contained in:
15
update.sh
15
update.sh
@@ -29,6 +29,21 @@ git pull origin master
|
||||
# Lokale Änderungen wiederherstellen
|
||||
git stash pop
|
||||
|
||||
echo "=== System-Konfiguration (Port 80 / Authbind) ==="
|
||||
# Sicherstellen, dass authbind installiert ist
|
||||
if ! command -v authbind &> /dev/null; then
|
||||
echo "Installiere authbind..."
|
||||
apt-get update && apt-get install -y authbind
|
||||
fi
|
||||
|
||||
# Port 80 Freigabe
|
||||
if [ ! -f "/etc/authbind/byport/80" ]; then
|
||||
echo "Konfiguriere Port 80 Zugriff..."
|
||||
touch /etc/authbind/byport/80
|
||||
chmod 500 /etc/authbind/byport/80
|
||||
chown $USER /etc/authbind/byport/80
|
||||
fi
|
||||
|
||||
echo "=== Setze Berechtigungen ==="
|
||||
chmod +x *.sh
|
||||
chown -R $USER:$USER "$TARGET_DIR"
|
||||
|
||||
Reference in New Issue
Block a user