
-Add restriction for atcommand to prevent possible mapcrash from script or console usage while waiting full portability. -Upd athena-start for new default binname. -Remove petstat as it was similar to getpetinfo and copy only missing attribute level atribute into getpetinfo. -Merge useatcmd and atcommand as they shared quite the same code, also properly differenciate useatcmd from normal player call. --Upd script-documentation about it thx Euphy.
27 lines
560 B
Bash
Executable File
27 lines
560 B
Bash
Executable File
L_SRV=login-server
|
|
C_SRV=char-server
|
|
M_SRV=map-server
|
|
INST_PATH=/opt
|
|
PKG=rathena
|
|
PKG_PATH=$INST_PATH/$PKG
|
|
|
|
check_files() {
|
|
for i in ${L_SRV} ${C_SRV} ${M_SRV}
|
|
do
|
|
if [ ! -f ./$i ]; then
|
|
echo "$i does not exist extiting"
|
|
exit 1;
|
|
fi
|
|
done
|
|
}
|
|
|
|
check_inst_right(){
|
|
if [ ! -w $INST_PATH ]; then echo "You must have sudo right to use this install (writte/read permission in /opt/ )" && exit; fi
|
|
}
|
|
|
|
inst_launch_workaround(){
|
|
if [ -d $PKG_PATH ]; then
|
|
if [ $(pwd) != $PKG_PATH ]; then cd $PKG_PATH; fi
|
|
fi
|
|
}
|