Updated Managar-Linux.ps1 - fixed typo.
This commit is contained in:
parent
db655131a5
commit
fff0445cde
1 changed files with 8 additions and 8 deletions
|
@ -80,7 +80,7 @@ if ($IsLinux)
|
||||||
|
|
||||||
if ($exists)
|
if ($exists)
|
||||||
{
|
{
|
||||||
Write-Host (Select-String -Pattern "'[0-9a-f]{32}" -Path ".\longvinter-linix-server\Longvinter\Saved\Logs\Longvinter.log").Matches.groups[0].value.ToString().Replace("'", "") -NoNewline -ForegroundColor Green
|
Write-Host (Select-String -Pattern "'[0-9a-f]{32}" -Path ".\longvinter-linux-server\Longvinter\Saved\Logs\Longvinter.log").Matches.groups[0].value.ToString().Replace("'", "") -NoNewline -ForegroundColor Green
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -91,9 +91,9 @@ if ($IsLinux)
|
||||||
}
|
}
|
||||||
function update
|
function update
|
||||||
{
|
{
|
||||||
if (Test-Path ".\longvinter-linix-server\" -PathType Any)
|
if (Test-Path ".\longvinter-linux-server\" -PathType Any)
|
||||||
{
|
{
|
||||||
Set-Location ".\longvinter-linix-server\"
|
Set-Location ".\longvinter-linux-server\"
|
||||||
git fetch
|
git fetch
|
||||||
git restore .
|
git restore .
|
||||||
git pull
|
git pull
|
||||||
|
@ -108,14 +108,14 @@ if ($IsLinux)
|
||||||
function backup
|
function backup
|
||||||
{
|
{
|
||||||
$ctime = Get-Date -Format "yyyyMMdd-HHmm"
|
$ctime = Get-Date -Format "yyyyMMdd-HHmm"
|
||||||
mkdir ".\longvinter-linix-server\Longvinter\Backup" -ErrorAction SilentlyContinue
|
mkdir ".\longvinter-linux-server\Longvinter\Backup" -ErrorAction SilentlyContinue
|
||||||
tar --exclude="*Logs*" --exclude="*CrashReportClient*" -cvzf ".\longvinter-linix-server\Longvinter\Backup\$ctime.tar.gz" ".\longvinter-linix-server\Longvinter\Saved" 2> $null
|
tar --exclude="*Logs*" --exclude="*CrashReportClient*" -cvzf ".\longvinter-linux-server\Longvinter\Backup\$ctime.tar.gz" ".\longvinter-linux-server\Longvinter\Saved" 2> $null
|
||||||
success "Created backup in .\longvinter-linix-server\Longvinter\Backup\$ctime.tar.gz"
|
success "Created backup in .\longvinter-linux-server\Longvinter\Backup\$ctime.tar.gz"
|
||||||
}
|
}
|
||||||
function uninstall
|
function uninstall
|
||||||
{
|
{
|
||||||
Remove-Item ".\longvinter-linix-server" -Recurse -Force -ErrorAction SilentlyContinue
|
Remove-Item ".\longvinter-linux-server" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
success "Removed longvinter-linix-server."
|
success "Removed longvinter-linux-server."
|
||||||
|
|
||||||
$udp = Get-NetFirewallRule -DisplayName "LongvinterServer UDP" 2> $null
|
$udp = Get-NetFirewallRule -DisplayName "LongvinterServer UDP" 2> $null
|
||||||
$tcp = Get-NetFirewallRule -DisplayName "LongvinterServer TCP" 2> $null
|
$tcp = Get-NetFirewallRule -DisplayName "LongvinterServer TCP" 2> $null
|
||||||
|
|
Loading…
Add table
Reference in a new issue