Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Robomikel committed Sep 30, 2024
1 parent 87d2343 commit 9d358b1
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions functions/install_ssmupdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ Function Get-UpdateSteamer {
$global:getlocalssmname = $getlocalssm.Name
If ($getlocalssmname) {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/functions/$getlocalssmname" -UseBasicParsing
Try {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/functions/$getlocalssmname" -UseBasicParsing
}
Catch {
Write-log "Warning: $_"
#Write-log $_.Exception.Message
}
If ($githubvarcontent) {
$githubvarcontent = ($githubvarcontent).Content
If ($githubvarcontent) {
Expand Down Expand Up @@ -60,7 +66,13 @@ Function Get-UpdateSteamerSSM {
ForEach ($getlocalssm in $getlocalssm ) {
$global:getlocalssmname = $getlocalssm.Name
If ($getlocalssmname) {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/$getlocalssmname" -UseBasicParsing
Try {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/$getlocalssmname" -UseBasicParsing
}
Catch {
Write-log "Warning: $_"
#Write-log $_.Exception.Message
}
If ($githubvarcontent) {
$githubvarcontent = ($githubvarcontent).Content
If ($githubvarcontent) {
Expand Down Expand Up @@ -100,7 +112,13 @@ Function Get-UpdateSteamerCSV {
ForEach ($getlocalssm in $getlocalssm ) {
$global:getlocalssmname = $getlocalssm.Name
If ($getlocalssmname) {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/data/$getlocalssmname" -UseBasicParsing
Try {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/Steam-Server-Manager/master/data/$getlocalssmname" -UseBasicParsing
}
Catch {
Write-log "Warning: $_"
#Write-log $_.Exception.Message
}
If ($githubvarcontent) {
$githubvarcontent = ($githubvarcontent).Content
If ($githubvarcontent) {
Expand Down Expand Up @@ -140,7 +158,13 @@ Function Get-UpdateSteamerConfigDefault {
If ($getlocalssmname) {
ForEach ($getlocalssmname in $getlocalssmname ) {
If ($getlocalssmname) {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/config-default/master/$getlocalssmname" -UseBasicParsing
Try {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/config-default/master/$getlocalssmname" -UseBasicParsing
}
Catch {
Write-log "Warning: $_"
#Write-log $_.Exception.Message
}
If ($githubvarcontent) {
$githubvarcontent = ($githubvarcontent).Content
If ($githubvarcontent) {
Expand Down Expand Up @@ -182,7 +206,13 @@ Function Get-SteamerConfigDefault {
$global:getlocalssmname = ($getlocalssm | ? AppID -like $AppID).'Default-config'
write-log "info: Default-Config: $getlocalssmname"
If ($getlocalssmname) {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/config-default/master/$getlocalssmname" -UseBasicParsing
Try {
$githubvarcontent = Invoke-WebRequest "https://raw.githubusercontent.com/Robomikel/config-default/master/$getlocalssmname" -UseBasicParsing
}
Catch {
Write-log "Warning: $_"
#Write-log $_.Exception.Message
}
# Write-log "Invoke-WebRequest https://raw.githubusercontent.com/Robomikel/config-default/master/$getlocalssmname"
If ($githubvarcontent) {
$githubvarcontent = ($githubvarcontent).Content
Expand Down

0 comments on commit 9d358b1

Please sign in to comment.