-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |