Raised This Month: $ Target: $400
 0% 

[Linux] Anyone got an sourcemod/mm update script?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 06-26-2016 , 21:36   [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #1

Hey there!

I was wondering if anyone has made/found a shell script to check sourcemod for updates

basicly a script that checks the sourcemod version, pulls latest tar from website, untars the binaries into the corresponding locations (but not configs/plugins/etc...)

This would be great to put on a cronjob weekly or to execute manually.

Cow
__________________
ImACow is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-26-2016 , 23:46   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #2

I use SourceMod Updater for SM updates; it updates enabled core plugins as well.

Updating MetaMod should be as simple as picking out the right snapshot and using

Code:
tar -xzfp $MMS_RELEASE -C $GAME_DIR
on it. Screenscraping's probably the only way to go about automating that.

Also, I only do manual updates. If you're planning on dropping it into a cronjob, make sure to shut down the server.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 06-26-2016 at 23:51.
nosoop is offline
sheo
SourceMod Donor
Join Date: Jul 2013
Location: Russia, Moscow
Old 06-27-2016 , 12:31   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #3

I do not recomment doing autoupdates. A newer versions of sourcemod can break your server, i experienced that too.
__________________
sheo is offline
MUN
Senior Member
Join Date: Jan 2012
Location: Cali
Old 07-01-2016 , 18:35   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #4

https://enjen.net/valve/mm.php
https://enjen.net/valve/sm.php

-coupled with-

https://git.enjen.net/Munzy/TF2-Serv...ster/tf2-mm.sh

https://git.enjen.net/Munzy/TF2-Serv...ster/tf2-sm.sh

I personally do automatic updates, and I haven't run into issues.... Though I do run the newest stable and only update once per day.
__________________
MUN is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 07-20-2016 , 06:56   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #5

Quote:
Originally Posted by MUN View Post
https://enjen.net/valve/mm.php
https://enjen.net/valve/sm.php

-coupled with-

https://git.enjen.net/Munzy/TF2-Serv...ster/tf2-mm.sh

https://git.enjen.net/Munzy/TF2-Serv...ster/tf2-sm.sh

I personally do automatic updates, and I haven't run into issues.... Though I do run the newest stable and only update once per day.
Do you have any source for those php files ? Too many things go offline too quickly these days :'(
__________________
ImACow is offline
MFS
AlliedModders Donor
Join Date: Dec 2010
Old 07-20-2016 , 13:08   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #6

Try using the search. https://forums.alliedmods.net/showthread.php?t=193708

My metaupdate.sh

########################
# Update MetaMod v1.10 #
########################

cd ~/steam_pipe/temp
wget -O mmsdrop110.html http://www.metamodsource.net/mmsdrop/1.10/
FILE=`egrep '"mmsource-1\.10\..*-git.*-linux\.tar\.gz"' mmsdrop110.html | cut -d '"' -f 2 | tail -1`
if [ -n "$FILE" -a ! -f "$FILE" ]
then
wget http://www.metamodsource.net/mmsdrop/1.10/$FILE
tar -xzf $FILE
cd addons
for f in ~/steam_pipe/csg*/csgo/addons/
do
cp -r metamod $f
done

for f in ~/steam_pipe/css_noawp/cstrike/addons/
do
cp -r metamod $f
done



else
echo "MetaMod update not necessary."
fi
MFS is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 10-07-2016 , 06:23   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #7

Quote:
Originally Posted by MFS View Post
Try using the search.
I was asking for the PHP source files.

Love.
Cow.
__________________
ImACow is offline
Pitbull3
AlliedModders Donor
Join Date: Aug 2009
Location: Degree-Gaming.com
Old 10-07-2016 , 11:24   Re: [Linux] Anyone got an sourcemod/mm update script?
Reply With Quote #8

I posted this and didn't see your message. Mine doesn't check for updates, but you can run it and update to newest version listed. Check out my way: https://forums.alliedmods.net/showthread.php?t=288768

Last edited by Pitbull3; 10-07-2016 at 11:26.
Pitbull3 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode