mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
915080e8d4
By default when the Snap package is installed, YaCy data is stored in a versioned user folder, allowing to revert to previous data after a package refresh for example. But it can consumes much disk space, so it is now possible to tell YaCy snap not to version its data, with the Snap configuration setting "data.versioned=false".
16 lines
552 B
Bash
Executable File
16 lines
552 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Wrapper script for Snap package specific instructions before calling the bin/passwd.sh script
|
|
|
|
# Check the snap configuration to properly fill the YACY_DATA_PATH environment variable
|
|
DATA_VERSIONED="$(snapctl get data.versioned)"
|
|
if [ "$DATA_VERSIONED" = "false" ]; then
|
|
# YaCy data is in the Snap common (non versioned) user data
|
|
YACY_DATA_PATH="$SNAP_USER_COMMON/DATA"
|
|
else
|
|
# Defaults : YaCy data is in the Snap versioned user data
|
|
YACY_DATA_PATH="$SNAP_USER_DATA/DATA"
|
|
fi
|
|
export YACY_DATA_PATH
|
|
|
|
sh "$SNAP/yacy/bin/passwd.sh" |