Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ notify:
# Notifications syst猫me macOS
- platform: file
name: "macOS Notifications"
filename: "/tmp/ha_notifications.log"
filename: "/Library/Logs/HomeAssistant/notifications.log"
timestamp: true

# Configuration de l'automatisation
Expand Down
2 changes: 1 addition & 1 deletion docs/OFFICIAL_MACOS_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ bluetooth:
notify:
- platform: file
name: macos_notifications
filename: /tmp/ha_notifications.log
filename: /Library/Logs/HomeAssistant/notifications.log
```

#### Appareils Externes
Expand Down
4 changes: 3 additions & 1 deletion scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ mkdir -p "$HA_LOG_DIR"

# Attribution des droits au nouvel utilisateur syst猫me
chown -R $USER_NAME:$GROUP_NAME "$HA_CONFIG_DIR" "$HA_LOG_DIR" >/dev/null 2>&1 || true
chmod -R 755 "$HA_CONFIG_DIR" "$HA_LOG_DIR" >/dev/null 2>&1 || true
chmod -R 755 "$HA_CONFIG_DIR" >/dev/null 2>&1 || true
# Permissions plus restrictives pour les logs (s茅curit茅)
chmod -R 750 "$HA_LOG_DIR" >/dev/null 2>&1 || true

# Droits sur l'installation dans /opt
if [ -d "/opt/homeassistant" ]; then
Expand Down
3 changes: 3 additions & 0 deletions scripts/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ fi

# 10. Nettoyage des fichiers temporaires
log_info "Nettoyage des fichiers temporaires..."
# Nettoyage des anciens fichiers temporaires (s茅curit茅)
rm -f /tmp/ha_notifications.log 2>/dev/null || true
rm -rf /tmp/homeassistant-* 2>/dev/null || true
# Nettoyage du nouveau fichier de notifications
rm -f /Library/Logs/HomeAssistant/notifications.log 2>/dev/null || true

# 11. Suppression des entr茅es launchd restantes
log_info "Nettoyage des entr茅es launchd..."
Expand Down