Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ and restart the Docker container:
```sh
/path-to-cronicle-storage/data/.setup_done
```
### Import data
A previously [exported data file](https://github.com/jhuckaby/Cronicle#data-import-and-export) can be provided in the following location:

```sh
/path-to-cronicle-storage/data/backup.txt.import
```
The file will get loaded the very first time Cronicle is started.

## Web UI credentials
The default credentials for the web interface are: `admin` / `admin`
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ then
cp $DATA_DIR/config.json.import $CONF_DIR/config.json
fi

# load exported data if present
if [ -f $DATA_DIR/backup.txt.import ]
then
$BIN_DIR/control.sh import $DATA_DIR/backup.txt.import
fi

# Create plugins directory
mkdir -p $PLUGINS_DIR

Expand Down