Page 1 of 1

database installer error

Posted: Mon Oct 14, 2013 8:09 am
by luke9511
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:latest
L2JDP Revision Number:latest

hey everyone I have been out of the L2J server install for a while and wanted to try it out again but this time I am doing it on linux, I am up to the point to run the database installer however I keep getting this error

Code: Select all

    user@server01:/var/L2J/tools$ sh database_installer.sh    : bad trap    : not foundstaller.sh: 38: database_installer.sh:    #############################################    # You entered script configuration area     #    # No change will be performed in your DB    #    # I will just ask you some questions about  #    # your hosts and DB.                        #    #############################################    database_installer.sh: 88: database_installer.sh: Syntax error: "elif" unexpected (expecting "then")
does anyone know how to fix it?

Re: database installer error

Posted: Mon Oct 14, 2013 8:33 am
by UnAfraid
its bash script not sh.
start it with

Code: Select all

chmod +x database_installer.sh && ./database_installer.sh

Re: database installer error

Posted: Mon Oct 14, 2013 8:34 am
by luke9511
UnAfraid wrote:its bash script not sh.
start it with

Code: Select all

chmod +x database_installer.sh && ./database_installer.sh
that gives me a bad interpreter error

EDIT i used dos2unix to convert to unix format and now it works

EDIT EDIT now I am getting an error when trying to start startLoginServer.sh saying it cant find LoginServer_loop.sh