Standouthost / Multicraft

Open Source Multicraft Scripts
GNU General Public License v3.0
44 stars 53 forks source link

Problem changing working directory / reoccured #10

Closed kevinals closed 9 years ago

kevinals commented 9 years ago

Hi there,

This happens (as the title says)

Folder structure: http://gyazo.com/268ac717872824387c962cb0b5becf68

prepare.sh: http://pastebin.com/8qtrhgqR

The server is running CentOS 6.6 64 bit

Warmest regards, Kevin

Jmainguy commented 9 years ago

That really should have worked. Did you enable prepare.sh in multicraft.conf?

[useragent]
## The path to the Multicraft useragent. This program is used in
## multiuser mode to access user files.
## default: bin (-> "baseDir"/bin, same as daemonDir)
userAgentDir = bin
## The executable of the Multicraft useragent. Note that a config
## file with the same name as this setting (plus .conf) will be
## generated next to this file.
## default: launcher (-> "baseDir"/"userAgentDir"/useragent)
userAgentFile = useragent
## The minimum allowed user and group IDs for server users
## default: 100
userAgentMinUid = 100
userAgentMinGid = 100
## The script to run when a server is being prepared. The path is
## relative to the userAgentDir.
## NOTE: This script will be run as the superuser.
## default: empty
userAgentSuperuserPrepare = prepare.sh
kevinals commented 9 years ago

Where do I find this? ***Edit

its enabled, I think you are talking with one of my guys? (same problem)

Jmainguy commented 9 years ago

/home/minecraft/multicraft/multicraft.conf around line 150, just uncomment the lines that need uncommenting, and add prepare.sh to the userAgentSuperuserPrepare = line. Restart multicraft after editing this file.

kevinals commented 9 years ago

That is done aswell.

I think you are talking right now either via skype or something with my staff (Kelvin)

kevinals commented 9 years ago

Do you have any other kind of solution? so if other has the error they can try to resolve it

Jmainguy commented 9 years ago

Talking with your friend in IRC, it does appear to be the issue I mentioned above in multicraft.conf

kevinals commented 9 years ago

I hope that fixes it,

Thanks for the support Jonathan!

Jmainguy commented 9 years ago

Yup worked with your friend on IRC and its all working now. It was a combination of the above, and a typo he accidentally made in prepare.sh. All fixed and working now.

kevinals commented 9 years ago

Many thanks!