Merge pull request #3378 from taosdata/feature/sangshuduo/snap
Feature/sangshuduo/snap
This commit is contained in:
commit
55f94e5d58
|
@ -18,41 +18,18 @@ apps:
|
||||||
- network
|
- network
|
||||||
- network-bind
|
- network-bind
|
||||||
- system-observe
|
- system-observe
|
||||||
- systemfiles
|
|
||||||
|
|
||||||
taos:
|
taos:
|
||||||
command: taoswrapper.sh
|
command: taoswrapper.sh
|
||||||
plugs:
|
plugs:
|
||||||
- network
|
- network
|
||||||
- system-observe
|
- system-observe
|
||||||
- systemfiles
|
|
||||||
- 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
|
|
||||||
|
|
||||||
systemfiles:
|
|
||||||
interface: system-files
|
|
||||||
read:
|
|
||||||
- /etc/taos
|
|
||||||
- /var/lib/taos
|
|
||||||
- /var/log/taos
|
|
||||||
- /tmp
|
|
||||||
write:
|
|
||||||
- /var/log/taos
|
|
||||||
- /var/lib/taos
|
|
||||||
- /tmp
|
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
script:
|
script:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
|
@ -115,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: [systemfiles, historyfile]
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue