rathena/function.sh
aleos89 2d2991a1fd TXT reference removal from emulator.
- Removed any remaining TXT and SQL references from files.
- The 'make sql' command is now replaced by 'make server'.
- Removed account.engine feature as it is no longer needed.
- Moved login and IP ban configs to inter_athena.conf.
- Cleaned up cmake files.
- Miscellaneous clean ups.
2014-09-03 17:44:35 -04:00

27 lines
564 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... exiting..."
exit 1;
fi
done
}
check_inst_right(){
if [ ! -w $INST_PATH ]; then echo "You must have sudo right to use this install (write/read permission in /opt/ )" && exit; fi
}
inst_launch_workaround(){
if [ -d $PKG_PATH ]; then
if [ $(pwd) != $PKG_PATH ]; then cd $PKG_PATH; fi
fi
}