forked from evilsocket/opensnitch
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use debconf to ask questions. This allow us to: - install deb packages using apt frontends (noninteractive, readline, etc). - display the questions on graphical installers like Gdebi. closes #75
- Loading branch information
1 parent
2dd9c43
commit 5e5a586
Showing
6 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh -e | ||
|
||
. /usr/share/debconf/confmodule | ||
|
||
# set default value, otherwise the question is not shown on first install | ||
db_fset python3-opensnitch-ui/question1 seen false | ||
|
||
db_input high python3-opensnitch-ui/question1 || true | ||
db_go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
. /usr/share/debconf/confmodule | ||
|
||
db_purge | ||
|
||
case "$1" in | ||
remove) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Template: python3-opensnitch-ui/question1 | ||
Type: boolean | ||
Description: Do you want to install them now? | ||
OpenSnitch GUI needs to install manually 3 more packages using python3-pip: | ||
. | ||
unicode_slugify, grpcio-tools and protobuf. | ||
. |