This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Bash question
#3469
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @tteck, thanks for sharing your scripts. I have a bash-related question that you can help me with. I'm adding the following code to the update-lxcs-cron.sh and manually downloading the corresponding update script for each LXC at /opt/scripts/update.sh. That way, I can update the applications when updating the LXCs.
if pct exec "$container" -- test -f /opt/scripts/update.sh; then
echo -e "Updating $name: Script update.sh Found - Updating Application."
pct exec "$container" -- bash -c /opt/scripts/update.sh;
fi
This approach works great with the ones I have tried so far, except for the Nginx Proxy Manager update script, which doesn't build the frontend properly from the host. However, the same update script works perfectly when running it from within the LXC instead of from the host.
cp: cannot stat 'dist/*': No such file or directory
Do you have any ideas?
TIA
Beta Was this translation helpful? Give feedback.
All reactions