Skip to content

Fix first time setup script #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2017
Merged

Fix first time setup script #30

merged 2 commits into from
Apr 28, 2017

Conversation

hgmich
Copy link
Contributor

@hgmich hgmich commented Apr 25, 2017

The script wasn’t switched from /var/www/BookStack to /var/www/bookstack.
Resolves #29.

The script wasn’t switched from `/var/www/BookStack` to `/var/www/bookstack`
@solidnerd
Copy link
Owner

Thanks. Yeah I missed that. I would prefer a better solution we cloud use $BOOKSTACK_HOME instead of the path so we don't need to worry anymore in the future.

@@ -7,9 +7,9 @@ echoerr() { echo "$@" 1>&2; }
IFS=":" read -r DB_HOST_NAME DB_PORT <<< "$DB_HOST"
DB_PORT=${DB_PORT:-3306}

if [ ! -f '/var/www/BookStack/.env' ]; then
if [ ! -f '/var/www/bookstack/.env' ]; then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use

if [ ! -f "$BOOKSTACK_HOME/.env" ]; then

if [[ "${DB_HOST}" ]]; then
cat > /var/www/BookStack/.env <<EOF
cat > /var/www/bookstack/.env <<EOF
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here aswell

if [ ! -f "$BOOKSTACK_HOME/.env" ]; then

@hgmich
Copy link
Contributor Author

hgmich commented Apr 25, 2017

This should be good to go now.

@solidnerd
Copy link
Owner

LGTM !

@solidnerd solidnerd closed this Apr 28, 2017
@solidnerd solidnerd reopened this Apr 28, 2017
@solidnerd solidnerd merged commit 24d266e into solidnerd:master Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants