Simford.Dong commited on
Commit
195797b
·
1 Parent(s): f5c4d74

Fix WebUI backup path: use /home/appuser/.hermes-web-ui/

Browse files

The app stores its SQLite DB (accounts, channel configs, WeChat
credentials) in ~/.hermes-web-ui/ (= /home/appuser/.hermes-web-ui/),
not /data/.hermes-web-ui/ which only holds the legacy .token file.

Files changed (1) hide show
  1. src/data_sync.py +1 -1
src/data_sync.py CHANGED
@@ -57,7 +57,7 @@ class DatasetManager:
57
  'state_db': {'path': self.hermes_home / 'state.db', 'skip_backup': False},
58
  'logs': {'path': self.hermes_home / 'logs', 'skip_backup': True}, # 日志大且不重要
59
  'cron': {'path': self.hermes_home / 'cron', 'skip_backup': False},
60
- 'webui_dir': {'path': Path('/data/.hermes-web-ui'), 'skip_backup': False},
61
  'image_cache': {'path': self.hermes_home / 'image_cache', 'skip_backup': True}, # 图片缓存大
62
  'baoyu_skills': {'path': Path('/home/appuser/.baoyu-skills'), 'skip_backup': False},
63
  'weixin': {'path': self.hermes_home / 'weixin', 'skip_backup': False},
 
57
  'state_db': {'path': self.hermes_home / 'state.db', 'skip_backup': False},
58
  'logs': {'path': self.hermes_home / 'logs', 'skip_backup': True}, # 日志大且不重要
59
  'cron': {'path': self.hermes_home / 'cron', 'skip_backup': False},
60
+ 'webui_dir': {'path': Path('/home/appuser/.hermes-web-ui'), 'skip_backup': False},
61
  'image_cache': {'path': self.hermes_home / 'image_cache', 'skip_backup': True}, # 图片缓存大
62
  'baoyu_skills': {'path': Path('/home/appuser/.baoyu-skills'), 'skip_backup': False},
63
  'weixin': {'path': self.hermes_home / 'weixin', 'skip_backup': False},