fix: handle case when apps:clone is run in a directory the dokku user does not have access to
This commit is contained in:
@@ -10,7 +10,9 @@ trigger-scheduler-docker-local-post-app-clone-setup() {
|
|||||||
local APP_ROOT="$DOKKU_ROOT/$NEW_APP"
|
local APP_ROOT="$DOKKU_ROOT/$NEW_APP"
|
||||||
|
|
||||||
fn-plugin-property-clone "scheduler-docker-local" "$OLD_APP" "$NEW_APP"
|
fn-plugin-property-clone "scheduler-docker-local" "$OLD_APP" "$NEW_APP"
|
||||||
|
pushd "$APP_ROOT" >/dev/null
|
||||||
find "$APP_ROOT" -type f -name 'CONTAINER.*' -exec rm {} \;
|
find "$APP_ROOT" -type f -name 'CONTAINER.*' -exec rm {} \;
|
||||||
|
popd &>/dev/null || pushd "/tmp" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger-scheduler-docker-local-post-app-clone-setup "$@"
|
trigger-scheduler-docker-local-post-app-clone-setup "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user