diff options
| author | Philipp Le <philipp-le-prviat@freenet.de> | 2020-11-06 00:04:28 +0100 |
|---|---|---|
| committer | Philipp Le <philipp-le-prviat@freenet.de> | 2020-11-06 00:07:48 +0100 |
| commit | 1ac4830b6eeb6a5e054ed9b7b4bdb34bd1ac4423 (patch) | |
| tree | 07541e58a3c64d975e08b459f92555d802b4ebbe | |
| parent | 95d2a990f42f49d0488bf67f8d4609486dbbb9f6 (diff) | |
| download | farafeit-wp-docker-compose-1ac4830b6eeb6a5e054ed9b7b4bdb34bd1ac4423.zip farafeit-wp-docker-compose-1ac4830b6eeb6a5e054ed9b7b4bdb34bd1ac4423.tar.gz farafeit-wp-docker-compose-1ac4830b6eeb6a5e054ed9b7b4bdb34bd1ac4423.tar.bz2 | |
| -rw-r--r-- | README.md | 14 | ||||
| -rwxr-xr-x | prepare.sh | 3 | ||||
| -rwxr-xr-x | upgrade.sh | 19 | ||||
| m--------- | wordpress | 0 |
4 files changed, 36 insertions, 0 deletions
@@ -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 +``` @@ -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 -Subproject 5f62cd1566d27be22d961c2a9af31f077efdecf +Subproject 9b6aa1a717b0244dbaf4afee62bb78e54eed21f |
