Skip to content
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

Cannot find file via tool script after latest update #78

Open
sinnbeck opened this issue Oct 25, 2023 · 2 comments
Open

Cannot find file via tool script after latest update #78

sinnbeck opened this issue Oct 25, 2023 · 2 comments

Comments

@sinnbeck
Copy link

I just updated to use the latest version of Lando. I have a script for importing a backup of my lastest database dump which no longer works.

image

The script is just this

#!/bin/bash
DATE=`/bin/date +%Y-%m-%d`
FILENAME="intranet-"$DATE".sql.gz"

if [ "$1" != "" ]
then
    FILENAME=$1
fi

echo "Importing $FILENAME"
/helpers/sql-import.sh  $FILENAME

and the tooling

  import-db:
    cmd:
      - database: /app/scripts/import-db.sh

If i ssh into the database container and run the script directly it works just fine.

@sinnbeck sinnbeck added the bug Something isn't working label Oct 25, 2023
@sinnbeck
Copy link
Author

I got it working by hardcoding the full path, but that wasn't needed in the previous version. Very strange

FILENAME="/app/intranet-"$DATE".sql.gz"

@pirog
Copy link
Sponsor Member

pirog commented Oct 28, 2023

@sinnbeck we made some changes to how app-mounting works to accommodate version 4 stuff that is coming soon, i would try doing a lando rebuild and see if that resets the mounts correctly. a good way to test the behavior out is create a lando pwd command and see if its giving you the expected result.

let us know if it isnt and we can investigste further

@pirog pirog added Needs Triage and removed bug Something isn't working labels Oct 28, 2023
@pirog pirog transferred this issue from lando/lando Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants