mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
feat: add post-app-rename-setup trigger
This commit is contained in:
1
plugins/20_events/post-app-rename-setup
Symbolic link
1
plugins/20_events/post-app-rename-setup
Symbolic link
@@ -0,0 +1 @@
|
||||
hook
|
||||
@@ -24,6 +24,7 @@ cmd-apps-rename() {
|
||||
rm -rf "$OLD_CACHE_DIR"
|
||||
apps_create "$NEW_APP"
|
||||
cp -a "$DOKKU_ROOT/$OLD_APP/." "$DOKKU_ROOT/$NEW_APP"
|
||||
plugn trigger post-app-rename-setup "$OLD_APP" "$NEW_APP"
|
||||
plugn trigger proxy-clear-config "$NEW_APP"
|
||||
DOKKU_APPS_FORCE_DELETE=1 apps_destroy "$OLD_APP"
|
||||
[[ -f "$DOKKU_ROOT/$NEW_APP/URLS" ]] && sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/URLS"
|
||||
|
||||
Reference in New Issue
Block a user