21 lines
589 B
Bash
Executable File
21 lines
589 B
Bash
Executable File
#!/bin/sh
|
|
rm -rf output
|
|
mkdir output
|
|
mkdir output/odb
|
|
mkdir output/db
|
|
mkdir output/logs
|
|
rm -rf `find . -type f -name "oasys.*"`
|
|
|
|
# Gruppe setzen + volle Rechte + setgid (neue Dateien erben Gruppe)
|
|
chgrp -R projekt01 output
|
|
chmod -R 2775 output
|
|
|
|
# Zusätzlich für alle Projekt-Dateien (falls Oasys außerhalb von output/ schreibt)
|
|
chgrp -R projekt01 . 2>/dev/null
|
|
find . -type d -exec chmod g+rwxs {} \; 2>/dev/null
|
|
find . -type f -exec chmod g+rw {} \; 2>/dev/null
|
|
|
|
echo "\n-------------------------------------"
|
|
echo "\nCleanup Complete"
|
|
echo "\n-------------------------------------\n"
|