提交 f21200d9 编写于 作者: sangshuduo's avatar sangshuduo

remove personalfiles interface.

上级 48f5309e
...@@ -24,21 +24,12 @@ apps: ...@@ -24,21 +24,12 @@ apps:
plugs: plugs:
- network - network
- system-observe - system-observe
- historyfile
taosdemo: taosdemo:
command: usr/bin/taosdemo command: usr/bin/taosdemo
plugs: plugs:
- network - network
plugs:
historyfile:
interface: personal-files
read:
- $HOME/.taos_history
write:
- $HOME/.taos_history
parts: parts:
script: script:
plugin: dump plugin: dump
...@@ -101,8 +92,3 @@ layout: ...@@ -101,8 +92,3 @@ layout:
bind: $SNAP_DATA/var/log/taos bind: $SNAP_DATA/var/log/taos
/etc/taos: /etc/taos:
bind: $SNAP_DATA/etc/taos bind: $SNAP_DATA/etc/taos
hooks:
install:
plugs: [historyfile]
...@@ -409,7 +409,7 @@ void set_terminal_mode() { ...@@ -409,7 +409,7 @@ void set_terminal_mode() {
} }
} }
void get_history_path(char *history) { sprintf(history, "%s/%s", getpwuid(getuid())->pw_dir, HISTORY_FILE); } void get_history_path(char *history) { sprintf(history, "%s/%s", getenv("HOME"), HISTORY_FILE); }
void clearScreen(int ecmd_pos, int cursor_pos) { void clearScreen(int ecmd_pos, int cursor_pos) {
struct winsize w; struct winsize w;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册