Skip to content

Instantly share code, notes, and snippets.

@alfonsojon
Last active August 29, 2015 14:24
Show Gist options
  • Save alfonsojon/916a1d9597087e81a0f8 to your computer and use it in GitHub Desktop.
Save alfonsojon/916a1d9597087e81a0f8 to your computer and use it in GitHub Desktop.
What is this, and why doesn't it work
if [[ -L "$0" ]]; then
source $(dirname $(readlink -e $0))/config
else
source $(dirname "$0")/config
fi
[[ "$SERVICE" == "" ]] && {
echo "Couldn't load config file, please edit config.example and rename it to config"
logger -t minecraft-init "Couldn't load config file, please edit config.example and rename it to conf$
exit
}
@alfonsojon
Copy link
Author

user@server:~/minecraft-init$ service minecraft screen
sed: -e expression #1, char 1: unknown command: `"'
/etc/init.d/minecraft: line 35: : No such file or directory
Couldn't load config file, please edit config.example and rename it to config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment