Add snap configure hook to allow enable debug mode
This commit is contained in:
parent
a88faed6d3
commit
83215524de
4 changed files with 17 additions and 1 deletions
9
snap/hooks/configure
vendored
Executable file
9
snap/hooks/configure
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(snapctl get debug.enable)" = true ]; then
|
||||
touch "$SNAP_COMMON"/.enable_debug
|
||||
else
|
||||
rm -f "$SNAP_COMMON"/.enable_debug
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue