Skip to content

Calling a non-existent function (install_adminer) while setting up linkwarden LXC with AdminerΒ #5354

@hazemhelmy

Description

@hazemhelmy

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

yes

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

linkwarden-install.sh

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

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

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

  • Default Settings
  • Advanced Settings

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

Ubuntu 24.04

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

I noticed an issue in the script linkwarden.sh
At line 47 of linkwarden.sh, the function install_adminer is being called: install_adminer

when choosing

Would you like to add Adminer? <y/N> y
0: line 47: install_adminer: command not found

[ERROR] in line 47: exit code 0: while executing command install_adminer

[ERROR] in line 1083: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?

However, this function does not exist in the sourced tools.func script. Instead, the correct function that should be called is:

setup_adminer

This function is defined in tools.func at line 1435:

setup_adminer() {
...
}
Suggested Fix:
Update line 47 of linkwarden.sh from:

install_adminer
to:

setup_adminer

πŸ”„ Steps to reproduce the issue.

run

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

in proxmox shell
press y when prompted to add Adminer then enter

❌ Paste the full error output (if available).

__    _       __                           __         

/ / ()__ / /___ ______ / / ____
/ / / / __ / //
/ | /| / / __ `/ / __ / _ / __
/ /
/ / / / / ,< | |/ |/ / /
/ / / / /
/ / / / / /
/
___/
/
/ /
/
/|
| |/|/_,// _,/___// /_/

βš™οΈ Using Default Settings on node pve3
πŸ–₯️ Operating System: ubuntu
🌟 Version: 24.04
πŸ“¦ Container Type: Unprivileged
πŸ’Ύ Disk Size: 12 GB
🧠 CPU Cores: 2
πŸ› οΈ RAM Size: 4096 MiB
πŸ†” Container ID: 187
πŸš€ Creating a Linkwarden LXC using the above default settings

⠏ Validating Storage
βœ”οΈ Using local for Template Storage.
βœ”οΈ Using local for Container Storage.
βœ”οΈ Cluster is quorate
βœ”οΈ LXC Template 'ubuntu-24.04-standard_24.04-2_amd64.tar.zst' is ready to use.
βœ”οΈ LXC Container 187 was successfully created.
βœ”οΈ Started LXC Container
βœ”οΈ Customized LXC Container
βœ”οΈ Set up Container OS
βœ”οΈ Network Connected: 192.168.1.28
βœ”οΈ IPv4 Internet Connected
βœ–οΈ IPv6 Internet Not Connected
βœ”οΈ GitHub DNS: github.com:(βœ”οΈ ) raw.githubusercontent.com:(βœ”οΈ ) api.github.com:(βœ”οΈ )
βœ”οΈ Updated Container OS
βœ”οΈ Installed Dependencies
βœ”οΈ Setup Node.js 22
βœ”οΈ Installed Node.js modules: yarn@latest
βœ”οΈ Setup PostgreSQL 16
βœ”οΈ PostgreSQL 16 installed
βœ”οΈ Setup Rust
βœ”οΈ Setup monolith latest
βœ”οΈ Setup Rust
βœ”οΈ Set up PostgreSQL DB
Would you like to add Adminer? <y/N> y
0: line 47: install_adminer: command not found

[ERROR] in line 47: exit code 0: while executing command install_adminer

[ERROR] in line 1083: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?

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

Suggested Fix:
Update line 47 of linkwarden.sh from:

install_adminer
to:

setup_adminer

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