This commit is contained in:
Team3
2026-05-18 17:11:40 +02:00
parent c67a7eaf98
commit b58d4aee9b
8 changed files with 18 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
mount | awk '$3 ~ /\/doc$/ {print $3}' | xargs -r sudo umount
killall -9 firefox code gnome-terminal-server 2>/dev/null
while pgrep -x code > /dev/null; do sleep 0.1; done
while pgrep -x gnome-terminal-server > /dev/null; do sleep 0.1; done

5
setup-sudoers Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo 'arbeit ALL=(ALL) NOPASSWD: /usr/bin/mount, /usr/bin/umount' \
| sudo tee /etc/sudoers.d/project-mount > /dev/null
sudo chmod 440 /etc/sudoers.d/project-mount
sudo visudo -c

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PROJEKT="/home/arbeit/arbeit/BeckhuisSwag6"
TICKET_NR="$1"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
TAB_TICKET=""
if [ -n "$TICKET_NR" ]; then

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PROJEKT="/home/arbeit/arbeit/filter-mueller.de"
TICKET_NR="$1"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
TAB_TICKET=""
if [ -n "$TICKET_NR" ]; then

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PROJEKT="/home/arbeit/arbeit/GSS6"
TICKET_NR="$1"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
TAB_TICKET=""
if [ -n "$TICKET_NR" ]; then

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PROJEKT="/home/arbeit/arbeit/kochmesser24.de"
TICKET_NR="$1"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
TAB_TICKET=""
if [ -n "$TICKET_NR" ]; then

View File

@@ -1,5 +1,7 @@
#!/bin/bash
PROJEKT="/home/arbeit/projects/project-starter"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
code "$PROJEKT" &

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PROJEKT="/home/arbeit/arbeit/MtoRagSystem"
TICKET_NR="$1"
DOC=""
[ -n "$DOC" ] && sudo mount --bind "$DOC" "$PROJEKT/doc"
TAB_TICKET=""
if [ -n "$TICKET_NR" ]; then