🚑️ fix
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-04-16 09:39:01 +02:00
parent 6fa01228c0
commit cf5f641012
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -56,9 +56,7 @@ async fn launch(config: String) {
..Default::default()
})
.mount_assets()
.mount(
"/",
routes![
.mount("/", routes![
routes::index_page,
routes::pkg_route,
routes::push::upload_pkg,
@ -71,8 +69,7 @@ async fn launch(config: String) {
routes::user::end_session,
routes::user::change_password,
routes::user::change_password_post
],
)
])
.manage(config)
.manage(shell)
.launch()
@ -114,6 +111,14 @@ pub fn build(image: &str, ci: bool) {
"chown -R build /build".to_string(),
]);
if ci {
let chown_cmd = format!(
"chown -R build {}",
std::env::current_dir().unwrap().display()
);
docker_script.extend([chown_cmd]);
}
if ci {
if std::fs::exists("./pacman.conf").unwrap() {
println!("-> Using custom pacman.conf");