Browse Source

GPG key must be in volume

changes/02/613702/1
Artem Smirnov 10 months ago
parent
commit
4606823714
2 changed files with 4 additions and 2 deletions
  1. 2
    0
      assets/gpg_batch.sh
  2. 2
    2
      assets/startup.sh

+ 2
- 0
assets/gpg_batch.sh View File

@@ -14,6 +14,8 @@ Name-Comment: Aptly Repo Signing
14 14
 Name-Email: ${EMAIL_ADDRESS}
15 15
 Expire-Date: 0
16 16
 Passphrase: ${GPG_PASSWORD}
17
+%pubring /opt/aptly/aptly.pub
18
+%secring /opt/aptly/aptly.sec 
17 19
 %commit
18 20
 %echo done
19 21
 EOF

+ 2
- 2
assets/startup.sh View File

@@ -49,8 +49,8 @@ if [[ -f /usr/share/keyrings/debian-archive-keyring.gpg ]]; then
49 49
 fi
50 50
 
51 51
 # Aptly looks in /root/.gnupg for default keyrings
52
-ln -sf /root/.gnupg/secring.gpg /opt/aptly/aptly.sec
53
-ln -sf /root/.gnupg/pubring.gpg /opt/aptly/aptly.pub 
52
+ln -sf /opt/aptly/aptly.sec /root/.gnupg/secring.gpg
53
+ln -sf /opt/aptly/aptly.pub /root/.gnupg/pubring.gpg
54 54
 
55 55
 # Generate Nginx Config
56 56
 /opt/nginx.conf.sh

Loading…
Cancel
Save