diff --git a/VERSION b/VERSION index 0c89fc9..cc868b6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.0 \ No newline at end of file +4.0.1 \ No newline at end of file diff --git a/overlay/etc/bf/init.d/31-fr-setup-data.nu b/overlay/etc/bf/init.d/31-fr-setup-data.nu index 4ffa724..e65afe8 100644 --- a/overlay/etc/bf/init.d/31-fr-setup-data.nu +++ b/overlay/etc/bf/init.d/31-fr-setup-data.nu @@ -3,6 +3,9 @@ use bf-freshrss bf env load def main [] { + # ensure source files exist + if (bf env FR_SRC | bf fs is_not_dir) { bf write error "FreshRSS source files cannot be found." } + # get variables let fr_data = bf env FR_DATA let fr_src_data = bf env FR_SRC_DATA diff --git a/overlay/etc/periodic/15min/fr-cron b/overlay/etc/periodic/15min/fr-cron index 7734804..19390e3 100644 --- a/overlay/etc/periodic/15min/fr-cron +++ b/overlay/etc/periodic/15min/fr-cron @@ -1,7 +1,6 @@ -#!/command/with-contenv bash +#!/bin/sh set -euo pipefail -export BF_E=`basename ${0}` #====================================================================================================================== diff --git a/overlay/tmp/install b/overlay/tmp/install index 759e01d..9402227 100644 --- a/overlay/tmp/install +++ b/overlay/tmp/install @@ -3,7 +3,7 @@ use bf use bf-php -# Absolute path to WordPress source directory +# Absolute path to FreshRSS source directory const src = "/etc/bf/src/freshrss" def main [] { diff --git a/overlay/usr/bin/bf/fr-cron b/overlay/usr/bin/bf/fr-cron index c4eea35..2168199 100644 --- a/overlay/usr/bin/bf/fr-cron +++ b/overlay/usr/bin/bf/fr-cron @@ -1,7 +1,6 @@ #!/bin/withenv sh set -euo pipefail -export BF_E=`basename ${0}` #======================================================================================================================