mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-06 15:46:39 +02:00
commit
9ae6f21603
|
@ -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
|
|
@ -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])]'
|
||||
|
|
Loading…
Reference in a new issue