forgejo: hard-link instead of soft-link config files
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a6964eaeb84f3eb32511106e80c155e1bdb71
This commit is contained in:
parent
03ecaf76d6
commit
cc13ebdfe1
1 changed files with 12 additions and 12 deletions
|
@ -124,7 +124,7 @@ in
|
||||||
'';
|
'';
|
||||||
base-brand = fetchurl {
|
base-brand = fetchurl {
|
||||||
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/src/branch/codeberg-11/web_src/css/themes/codeberg/base-brand.css";
|
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/src/branch/codeberg-11/web_src/css/themes/codeberg/base-brand.css";
|
||||||
hash = "sha256-rYZolA7maYEjzfx7mKJtEfyK62kfpGxvQ1eaC9qlZNw=";
|
hash = "sha256-8gUmye/Z8H1Xe6U1CNAq907n3jt2TnPtzgpz6KhdiDU=";
|
||||||
};
|
};
|
||||||
dark-variables = fetchurl {
|
dark-variables = fetchurl {
|
||||||
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/raw/branch/codeberg-11/web_src/css/themes/codeberg/dark-variables.css";
|
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/raw/branch/codeberg-11/web_src/css/themes/codeberg/dark-variables.css";
|
||||||
|
@ -140,30 +140,30 @@ in
|
||||||
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/img' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/img' 0750 ${user} ${group} - -"
|
||||||
# Copeberg logo, thanks Raf <3
|
# Copeberg logo, thanks Raf <3
|
||||||
"L+ '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
"f '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
||||||
"L+ '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
"f '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
||||||
"L+ '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
"f '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
||||||
"L+ '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
"f '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
||||||
"L+ '${customDir}/public/assets/img/favicon.png' - - - - ${img}/logo.png"
|
"f '${customDir}/public/assets/img/favicon.png' - - - - ${img}/logo.png"
|
||||||
|
|
||||||
# Theming shenanigans
|
# Theming shenanigans
|
||||||
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/css' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/css' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/css/codeberg' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/css/codeberg' 0750 ${user} ${group} - -"
|
||||||
|
|
||||||
"L+ '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
"f '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
"f '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
"f '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
||||||
|
|
||||||
# Templates
|
# Templates
|
||||||
"d '${customDir}/templates' 0750 ${user} ${group} - -"
|
"d '${customDir}/templates' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/templates/repo' 0750 ${user} ${group} - -"
|
"d '${customDir}/templates/repo' 0750 ${user} ${group} - -"
|
||||||
# Home page
|
# Home page
|
||||||
"L+ '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
"f '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
||||||
"L+ '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
"f '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
||||||
|
|
||||||
# Fuck off scrapers
|
# Fuck off scrapers
|
||||||
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
"f ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue