Merge pull request #189 from Ravinou/develop

fix: symbolic link
This commit is contained in:
Ravinou 2024-03-17 21:01:48 +01:00 committed by GitHub
commit 9ae6f21603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -82,4 +82,5 @@ create_authorized_keys_file
check_repos_directory
get_SSH_fingerprints
exec supervisord -c /home/borgwarehouse/app/supervisord.conf
print_green "Successful initialization. BorgWarehouse is ready !"
exec supervisord -c /home/borgwarehouse/app/supervisord.conf

View file

@ -26,7 +26,7 @@ fi
# Default value if .env not exists
: "${home:=/home/borgwarehouse}"
if [ -n "$(find "${home}"/repos -mindepth 1 -maxdepth 1 -type d)" ]; then
if [ -n "$(find -L "${home}"/repos -mindepth 1 -maxdepth 1 -type d)" ]; then
stat --format='{"repositoryName":"%n","lastSave":%Y}' \
"${home}"/repos/*/integrity* |
jq --slurp '[.[] | .repositoryName = (.repositoryName | split("/")[-2])]'