Skip to content

wp-migration.sh: hardcoded $USER breaks when run as root #21

@khoipro

Description

@khoipro

When running wp-migration.sh as root, line 131 builds the source path using $USER which evaluates to root, producing /home/root/webapps/<app> — a path that doesn't exist.

[ERROR] Source path does not exist: /home/root/webapps/khoipro

RunCloud webapps always live under /home/runcloud/webapps/, so $USER is the wrong source. Fix: default the source user to runcloud (overridable via env var SRC_USER if needed).

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