You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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