Skip to content

Commit

Permalink
Fix upgrade script
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
solarkraft committed Sep 17, 2021
1 parent 8f67867 commit 3b2ee8c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions upgrade
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
#!/usr/bin/env sh
set -e

echo "Upgrade your Dokuwiki? Your pages will be backed up and restored. Your installed plugins and some other data may be lost in the process. "
echo "Press enter to continue or ctrl+c to cancel. "
read

./stop
./backup


echo "Tearing down your previous installation"
docker-compose down
rm -r data/* || true

./restore

echo "Building your new & improved Dokuwiki"
docker build build/
docker build build/ --pull

./restore

GREEN='\033[0;32m'
NC='\033[0m' # No Color

echo "${GREEN}Your Dokuwiki has been upgraded. ${NC}"
echo "${GREEN}Your Dokuwiki has been upgraded. ${NC}"

./start

0 comments on commit 3b2ee8c

Please sign in to comment.