Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e0f2114736 |
+18
-1
@@ -7,9 +7,26 @@ aerich upgrade
|
|||||||
mkdir -p /app/data/obsidian
|
mkdir -p /app/data/obsidian
|
||||||
|
|
||||||
# Start continuous Obsidian sync if enabled
|
# Start continuous Obsidian sync if enabled
|
||||||
|
if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then
|
||||||
|
VAULT_PATH="${OBSIDIAN_VAULT_PATH:-/app/data/obsidian}"
|
||||||
|
|
||||||
|
# Setup sync if not already configured
|
||||||
|
if ! ob sync-status --path "$VAULT_PATH" > /dev/null 2>&1; then
|
||||||
|
echo "Configuring Obsidian sync..."
|
||||||
|
ob sync-setup \
|
||||||
|
--vault "${OBSIDIAN_VAULT_ID}" \
|
||||||
|
--path "$VAULT_PATH" \
|
||||||
|
--password "${OBSIDIAN_E2E_PASSWORD}" \
|
||||||
|
--device-name "${OBSIDIAN_DEVICE_NAME:-simbarag}" || {
|
||||||
|
echo "Failed to configure Obsidian sync. Skipping."
|
||||||
|
OBSIDIAN_CONTINUOUS_SYNC=false
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then
|
if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then
|
||||||
echo "Starting Obsidian continuous sync in background..."
|
echo "Starting Obsidian continuous sync in background..."
|
||||||
ob sync --continuous &
|
ob sync --path "$VAULT_PATH" --continuous &
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting application..."
|
echo "Starting application..."
|
||||||
|
|||||||
Reference in New Issue
Block a user