diff --git a/snap/hooks/install b/snap/hooks/install index aa12fe051f5d87b84cf213ea309493cf5ac6943e..542be0b8340893b652f38be6fec5711ef7c09fb9 100755 --- a/snap/hooks/install +++ b/snap/hooks/install @@ -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 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 3fe1e26759f1d17f51d0e0ff48ccca8cb77a50ad..f8300030c7433c7cc4445464ab3ac028447fd3f7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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]