Split setup script #5
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-package-builder#5
Loading…
Reference in New Issue
No description provided.
Delete Branch "split_setup_script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addresses: https://github.com/peachcloud/peach-vps/pull/3#issuecomment-747918761
Split the previous build & deploy script (
scripts/setup_debian_repo.py
) into two scripts: one for initial environment setup and compiler updates (scripts/setup_build_env.py
) and one for package building and archive updates (scripts/build_packages.py
).Usage is described in the README.
This aims to provide a neat separation of concerns and make the updating of the Debian package archive more efficient.
👍
At first when I tested this on the pi it didn't work, but then I looked onto the VPS and saw the url structure was slightly changed. I added a commit to this PR with those changes.
After making those changes, it now works! successully apt-installed :)
Also in /var/www/apt.peachcloud.org on the vps, there are a few extra files now:
keyring.gpg, peach.gpg and peach_pub.gpg
should we delete them?
pubkey.gpg is the one I downloaded which appears to be work
Whatever we decide to call the key, we should also update line 127 of setup_build_env.py to include the right key name.
@mycognosist (also wondering, when I make comments and PRs do you get notifications? or do I need to tag you?)
@mhfowler
Thanks for the review and additional testing. I'm not completely sure if it's necessary to @-mention me in these comments but I don't think it is. I receive email notifications for all activity on the PeachCloud repos.
Good catch regarding the updated URL structure and key. I can confirm that the changes you committed are working on my Pi. We can delete the other keys to remove any confusion in the future. I'll make the change to line 127 of the script.
I'm sharing a couple of commands here which I found helpful while updating
apt
and testing on my Pi:List all keys (the PeachCloud key appears under
/etc/apt/trusted.gpg
):sudo apt-key list
Delete a key (key id is the last 8 letters of the key - in other words, the last two blocks of 4 characters):
sudo apt-key del <KEYID>