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).
When running
wp-migration.shas root, line 131 builds the source path using$USERwhich evaluates toroot, producing/home/root/webapps/<app>— a path that doesn't exist.RunCloud webapps always live under
/home/runcloud/webapps/, so$USERis the wrong source. Fix: default the source user toruncloud(overridable via env varSRC_USERif needed).