From 70850aecdf7161c0a0793736c2e11a26f54f2985 Mon Sep 17 00:00:00 2001 From: Nick Kadutskyi Date: Sun, 9 Apr 2023 04:49:14 -0700 Subject: [PATCH] Adds WP content folder handler --- scripts/wp-install.sh | 1 + scripts/wp-update.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/wp-install.sh b/scripts/wp-install.sh index ca722af..7e1df0e 100755 --- a/scripts/wp-install.sh +++ b/scripts/wp-install.sh @@ -35,6 +35,7 @@ done if [ -f "$WP_DIR/wp-content/plugins/hello.php" ]; then mv "$WP_DIR/wp-content/plugins/hello.php" "$CONTENT_DIR/plugins/${WP_DEFAULT_PREFIX}hello.php" fi +ln -sf ../src/WordPressContent public-wp/content echo "Installed $CURRENT_VERSION" echo "$INSTALL_RESULT" diff --git a/scripts/wp-update.sh b/scripts/wp-update.sh index 7669730..1c0361a 100755 --- a/scripts/wp-update.sh +++ b/scripts/wp-update.sh @@ -31,6 +31,7 @@ for d in public-wp/wp-content/plugins/*/ ; do mv "$d" "$PLUGIN_DEST" done mv "$WP_DIR/wp-content/plugins/hello.php" "$CONTENT_DIR/plugins/${WP_DEFAULT_PREFIX}hello.php" +ln -sf ../src/WordPressContent public-wp/content echo "$CURRENT_VERSION to $NEW_VERSION" echo "$UPDATE_RESULT" echo "$UPDATE_DB_RESULT"