Skip to content

Commit

Permalink
enable gpgcheck for Stable and Testing updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Oct 28, 2015
1 parent ac98a51 commit 4c11379
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions conf/ROCKSTOR-GPG-KEY
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQENBFYewywBCADRC3prGgOcYyNKGvMvAAGMEECSqhWahZvkxJ+QmJWSnbrOiwM5
htKVTUnRH41OmIuwQppDDzNUygH9Ls8MlOZNfQ/pdz07zF0Li+U9DqYqEZWDbDWB
P2lOoI8xVSnAk+fa+jO19YDyUy5H+2lQmEX8WelKvXml8d+0t+QjjyBwigj8lft9
oLHd2WNqfS2sHx7ddkeGvLv9N03p8g6rcVjCZqtrJh7BDE7w6EoAFUbuab+GEeKE
Tru39wWc2WYspgzCqcDs4Ru4p63ecmowZILTb2nY0xwnP4+a/6lY2OrweNLsH486
/CbxzriQ9qDeQrm+E+MZS41q1yt9t61dqRX1ABEBAAG0Q1N1bWFuIENoYWtyYXZh
cnR1bGEgKFJvY2tzdG9yIFJQTSBkZXZlbG9wbWVudCkgPHN1bWFuQHJvY2tzdG9y
LmNvbT6JAT4EEwECACgFAlYewywCGwMFCQlmAYAGCwkIBwMCBhUIAgkKCwQWAgMB
Ah4BAheAAAoJEAMrdk0IeVsJHHMH/jKxiLEcLE1pXCwf/BASoo7ToDFrFkbEq/hz
jmUY5ukh6WRHhrSh25DAbmxT4OmHzME4w44fi7YQiT0+Fe9DMnxgCfGcxxztAVHk
YcFu0w+2+Mpkbec3rXi/OvRz3VUHQl4OEH5MwcvlpJ77/Pja5L5R3N7TpmJfYsPS
14/koPKKNcNZM6Q4fm52L4KZGECdwzkFV9HvXKMyibp1jbxXsZ0Rgsu6E5aZ8Mer
lC1v42IcQ55Ns0cEUWAUQ2UnMH8SK2OGiV3qPAOmls18mO/Yov9+AOPTW/6FCQGm
E//dOyQzZwOlfGTo10EZ24HPUHTwFfw7ws3AuHnUYJ/qfb1q7265AQ0EVh7DLAEI
AMyJObLpDIZeztZ8S5jTbrMMdOEgHBYB7/GhZV5H6gSt6qD83FJjQN2VVvBNM6BA
j1sZJqSGz4qev/o4HfXndcgQxwou5Y50Z2wqae9fV0VVWnFMmd8EycbBiKJ9QsC0
75c4t2UhXG5yO9brM2jnh6moNMQLOsSasYO703alJo4Eh1DDWDKnXEXRyLjDfWF8
OfqUsfomveBc7kbgkMh7ONr9YsjyV6u0JonegjikaLnBVE/+JKTpMsmIPEzfvAdR
FGvBH+rU3MsTmUuwsmt7QzvELRjj6/X0geQXrfM8FYvipRfzOHz2MV778YWyBgQA
DQpMRv33yfu5uJ6JZaVM+nkAEQEAAYkBJQQYAQIADwUCVh7DLAIbDAUJCWYBgAAK
CRADK3ZNCHlbCcEMB/4xbk9+ySt20Ab24s9csKNsS3tWSPNv4atxC9E3lsZoO/LQ
EBc+GNjp09TDK9hoxE9LCQ/yeGKbroArKOiigp4nPPu+zP6FawJDhl5tvBH/zlpG
M01L6z1gIU/Tu3MVtaVtCZwlB3jDomqcVqz8zV3Q4u75mfdMg9ogZNWI0TOmU7zm
KaSCr1f2BwXcl5rq+QIGh4W16L5vBO+UbxjkAsc4QotUt9g9WlEdO0dkec3S+Qzk
P4J8HYW3+4I3iIH63gQn1fzgMZzT5hribqd9cas/WkUHRxE1M4YNgF89quYK7ul0
H2/vbmi8kO0X9rrqNnolzE2ikP3Bgr1lOFNL7kBl
=YgLO
-----END PGP PUBLIC KEY BLOCK-----
3 changes: 2 additions & 1 deletion src/rockstor/system/pkg_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def switch_repo(subscription, on=True):
else:
rfo.write('baseurl=http://%s\n' % subscription.url)
rfo.write('enabled=1\n')
rfo.write('gpgcheck=0\n')
rfo.write('gpgcheck=1\n')
rfo.write('gpgkey=file://%sconf/ROCKSTOR-GPG-KEY\n' % settings.ROOT_DIR)
rfo.write('metadata_expire=1m\n')
os.chmod(yum_file, 0600)
else:
Expand Down

0 comments on commit 4c11379

Please sign in to comment.