fix var/log/taos permission issue.

This commit is contained in:
Shuduo Sang 2020-09-02 00:46:20 +08:00
parent 4723e21af4
commit 7e840afee2
2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,8 @@ fi
if [ ! -d /var/log/taos ]; then
mkdir -p --mode=777 /var/log/taos
else
chmod 777 /var/log/taos
fi
if [ ! -d /etc/taos ]; then

View File

@ -46,6 +46,7 @@ plugs:
read:
- /etc/taos
- /var/lib/taos
- /var/log/taos
- /tmp
write:
- /var/log/taos
@ -112,11 +113,11 @@ layout:
bind: $SNAP_DATA/var/lib/taos
/var/log/taos:
bind: $SNAP_DATA/var/log/taos
mode: 1777
/etc/taos:
bind: $SNAP_DATA/etc/taos
hooks:
install:
plugs: [systemfiles]
plugs: [systemfiles, historyfile]