Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Verzeichnis .local wird aus dem Home-Verzeichnis gelöscht #1307

Open
chiburek opened this issue May 9, 2021 · 2 comments
Open

[BUG] Verzeichnis .local wird aus dem Home-Verzeichnis gelöscht #1307

chiburek opened this issue May 9, 2021 · 2 comments

Comments

@chiburek
Copy link

chiburek commented May 9, 2021

Describe the bug
Das Verzeichnis .local wird bei einem GS-Neustart bzw. -Start gelöscht. Der Arma3 Server legt in diesem Verzeichnis das Profil ab, das unter anderem zum Speichern von Missions-Spielständen benötigt wird. Der Server-Parameter zum Definieren eines alternativen Profilpfades funktioniert unter Linux nicht.

To Reproduce
Steps to reproduce the behavior:

  1. Gameserver neu starten

Expected behavior
/developer/stuff/methods/class_app.php 1724
$script .= ' ! -name ".steam" ! -name "pserver" ! -name "backup" ! -name "fdl_data" ! -name "server" ! -name ".local" -print0 | xargs -0 rm -rf' . "\n";

@Pr0mises
Copy link
Contributor

Pr0mises commented Feb 8, 2023

Games with their weird default paths...
@AEon-Jan We probably should think about a better version than adding special folder per game now there are two games with such behavior #1344
Maybe excluding all hidden folders? like this ! -name ".*"

Fix for this one would be:

if ($this->appServerDetails['template']['shorten'] == 'arma3') {
  $script .= ' ! -name ".steam" ! -name "pserver" ! -name "backup" ! -name "fdl_data" ! -name "server" ! -name ".local" -print0 | xargs -0 rm -rf' . "\n"; 
  }
else {
  $script .= ' ! -name ".steam" ! -name "pserver" ! -name "backup" ! -name "fdl_data" ! -name "server" -print0 | xargs -0 rm -rf' . "\n";
  }

or

$script .= ' ! -name ".*" ! -name "pserver" ! -name "backup" ! -name "fdl_data" ! -name "server" -print0 | xargs -0 rm -rf' . 

@AEon-Jan
Copy link
Member

AEon-Jan commented Oct 5, 2024

Rework is ongoing—I have found more time now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants