summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-04-11 14:30:16 +0200
committerRuben Pollan <meskio@sindominio.net>2018-04-11 16:40:12 +0200
commit0052c07c255d891564537d51a53667458dc0ee97 (patch)
treeead410553cb4b16c76933a3c970e49f5c8c879ac
parent6773ce0f84e07f864d450dbe2374a52eb3b2eb97 (diff)
[docs] add a comment about the autogenerated install hook
-rwxr-xr-xpkg/riseupvpn/pack_installers7
-rwxr-xr-xsnap/hooks/install7
2 files changed, 10 insertions, 4 deletions
diff --git a/pkg/riseupvpn/pack_installers b/pkg/riseupvpn/pack_installers
index 629e4157..d7692fa2 100755
--- a/pkg/riseupvpn/pack_installers
+++ b/pkg/riseupvpn/pack_installers
@@ -11,8 +11,11 @@ with open(os.path.join(HELPDIR, POLKIT_FILE)) as polkit:
with open(INSTALL, 'w') as install:
install.write('#!/usr/bin/env python3\n')
- install.write('# This helper installs bitmask-root and polkit policy file\n')
- install.write('import subprocess\n')
+ install.write('# DO NOT MODIFY MANUALLY\n')
+ install.write('# This helper installs the polkit policy file\n')
+ install.write('# for the RiseupVPN snap.\n')
+ install.write('# It is generated automatically\n')
+ install.write('# by the script at "pkg/riseupvpn/pack_installers" \n')
install.write('from base64 import decodestring as decode\n')
install.write("""
POLKIT = {polkit}
diff --git a/snap/hooks/install b/snap/hooks/install
index 95207387..c435f006 100755
--- a/snap/hooks/install
+++ b/snap/hooks/install
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
-# This helper installs bitmask-root and polkit policy file
-import subprocess
+# DO NOT MODIFY MANUALLY
+# This helper installs the polkit policy file
+# for the RiseupVPN snap.
+# It is generated automatically
+# by the script at "pkg/riseupvpn/pack_installers"
from base64 import decodestring as decode
POLKIT = b'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBvbGljeWNv\nbmZpZyBQVUJMSUMKICItLy9mcmVlZGVza3RvcC8vRFREIFBvbG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