Skip to content

Commit

Permalink
Merge pull request #7406 from freedomofpress/stg-upgrade-script
Browse files Browse the repository at this point in the history
Script to upgrade from focal to noble
  • Loading branch information
cfm authored Feb 3, 2025
2 parents 7680afe + 36e9554 commit b6020fa
Show file tree
Hide file tree
Showing 16 changed files with 1,268 additions and 326 deletions.
99 changes: 97 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@
- apache
- hardening

# The default html directory gets created during installation
# of the apache package, so this task must run after installing.
- name: Remove default Apache site directory /var/www/html/.
file:
state: absent
dest: /var/www/html
notify:
- restart apache2
tags:
- apache
- hardening

# because we no longer call the `journalist interface` the `document interface`
- name: Remove old config files
file:
Expand Down
3 changes: 3 additions & 0 deletions noble-migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition = "2021"

[dependencies]
anyhow = "1.0.93"
env_logger = { version = "0.11.5", features = ["humantime"] , default-features = false }
log = "0.4.22"
rand = "0.8.5"
rustix = { version = "0.38.40", features = ["process"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.132"
Expand Down
1 change: 1 addition & 0 deletions noble-migration/files/apt_freedom_press.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [arch=amd64] https://apt.freedom.press noble main
13 changes: 13 additions & 0 deletions noble-migration/files/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ noble main

## newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ noble universe

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ noble-updates main

### Security fixes for distribution packages
deb http://security.ubuntu.com/ubuntu noble-security main
deb http://security.ubuntu.com/ubuntu noble-security universe
11 changes: 11 additions & 0 deletions noble-migration/files/ubuntu.sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Loading

0 comments on commit b6020fa

Please sign in to comment.