From 1ac4830b6eeb6a5e054ed9b7b4bdb34bd1ac4423 Mon Sep 17 00:00:00 2001 From: Philipp Le Date: Fri, 6 Nov 2020 00:04:28 +0100 Subject: Upgrading Wordpress to 5.5.3 --- README.md | 14 ++++++++++++++ prepare.sh | 3 +++ upgrade.sh | 19 +++++++++++++++++++ wordpress | 2 +- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 upgrade.sh diff --git a/README.md b/README.md index 9f8648d..9be0abb 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,17 @@ Start: ``` docker-compose up -d ``` + +# Upgrade + +You can run `./upgrade.sh` to checkout the latest release. + +``` +./upgrade.sh +``` + +Then run `./prepare.sh`: + +``` +sudo ./prepare.sh +``` diff --git a/prepare.sh b/prepare.sh index b0ebb48..caf5819 100755 --- a/prepare.sh +++ b/prepare.sh @@ -1,5 +1,8 @@ #!/bin/bash +if [ -e run/wordpress ]; then + rm -r run/wordpress +fi mkdir -p run/wordpress cp -r wordpress/* run/wordpress/ chown -R 33:33 run/wordpress diff --git a/upgrade.sh b/upgrade.sh new file mode 100755 index 0000000..5c4e9b3 --- /dev/null +++ b/upgrade.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +cd wordpress +git fetch --tags + +TAG="" +while [ "$TAG" = "" ]; do + read -p "Please enter tag, \"l\" to list tags or \"q\" to quit: " TAG + if [ "$TAG" = "l" ]; then + TAG="" + git tag + elif [ "$TAG" = "q" ]; then + exit 0 + fi +done + +git checkout $TAG + +cd .. diff --git a/wordpress b/wordpress index 5f62cd1..9b6aa1a 160000 --- a/wordpress +++ b/wordpress @@ -1 +1 @@ -Subproject commit 5f62cd1566d27be22d961c2a9af31f077efdecf7 +Subproject commit 9b6aa1a717b0244dbaf4afee62bb78e54eed21fc -- cgit v1.1