You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
552 B
16 lines
552 B
![]()
6 years ago
|
#!/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"
|