Skip to content

Error in build.func when Customizing LXC Container (Timezone)Β #5505

Closed as not planned
@DoloresHA

Description

@DoloresHA

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

misc/build.func via nginxproxymanager.sh

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ“ Provide a clear and concise description of the issue.

When attempting to run the nginxproxymanager.sh script with standard settings, verbose output, it errored out with

[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"

I was able to resolve this by changing the relevant line to
pct exec "$CTID" -- bash -c 'echo '"'"'${tz}'"'"' >/etc/timezone && ln -sf /usr/share/zoneinfo/'"'"'${tz}'"'"' /etc/localtime'
however, I had some help in modifying that line and don't have enough understanding of scripting to propose a "permanent" solution nor test it thoroughly (hence me not simply submitting a PR).

πŸ”„ Steps to reproduce the issue.

Run bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" from the promox web gui shell.

❌ Paste the full error output (if available).

Sorry, that's long gone, here is the best that I have:

[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"

πŸ–ΌοΈ Additional context (optional).

I love this project- thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions