Ignore:
Timestamp:
Nov 22, 2014, 10:55:28 PM (10 years ago)
Author:
alloc
Message:

Scripts 63

Location:
scripts/usr/local/lib/7dtd/commands
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/start.sh

    r72 r204  
    3333               
    3434                for H in $(getHooksFor serverPreStart); do
    35                         $H $INSTANCE
     35                        $H $1
    3636                done
    3737
     
    3939                SSD_DAEMON="--background --no-close"
    4040                SSD_USER="--chuid $SDTD_USER:$SDTD_GROUP --user $SDTD_USER"
    41                 OPTS="-logfile $(getInstancePath $1)/logs/output_log.txt -configfile=$(getInstancePath $1)/config.xml -dedicated"
     41                OPTS="-logfile $(getInstancePath $1)/logs/output_log.txt -configfile=$(getInstancePath $1)/config.xml"
    4242               
    43                 LD_LIBRARY_PATH=$SDTD_BASE/linux_files LC_ALL=C $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $SDTD_BASE/engine/7DaysToDie.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1
     43                LC_ALL=C $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $SDTD_BASE/engine/7DaysToDie.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1
    4444                sleep 1
    4545
    4646                for H in $(getHooksFor serverPostStart); do
    47                         $H $INSTANCE
     47                        $H $1
    4848                done
    4949
  • scripts/usr/local/lib/7dtd/commands/stop.sh

    r169 r204  
    2828        if [ $res -eq 1 ]; then
    2929                for H in $(getHooksFor serverPreStop); do
    30                         $H $INSTANCE
     30                        $H $1
    3131                done
    3232
     
    5454
    5555                for H in $(getHooksFor serverPostStop); do
    56                         $H $INSTANCE
     56                        $H $1
    5757                done
    5858
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r102 r204  
    7575
    7676                cd $SDTD_BASE/steamcmd
    77                 ./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 294420" validate +quit
     77                ./steamcmd.sh +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 294420" validate +quit
    7878
    79                 cp $SDTD_BASE/linux_files/engine/* $SDTD_BASE/engine/ -R
    8079                cp $SDTD_BASE/engine/7DaysToDie_Data/Managed/Assembly-CSharp.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/Assembly-CSharp.dll_orig
    8180                cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/7DaysToDie_Data/Managed/
    82                 cp $SDTD_BASE/engine/Install/32bit/SteamworksManaged.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/
    8381
    8482                chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine
Note: See TracChangeset for help on using the changeset viewer.