Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c2b680c6df | |||
| 545898493c |
@@ -55,7 +55,7 @@ export GITEA_LUGIT_THEME=gitea-lugit-theme
|
||||
wget --output-document %{_tmppath}/$GITEA_LUGIT_THEME.tar.gz https://github.com/lucas-labs/gitea-lugit-theme/releases/download/v1.0.1/$GITEA_LUGIT_THEME.tar.gz
|
||||
runuser --user=gitea -- tar --extract --gzip --overwrite --directory=%{_sharedstatedir}/gitea/custom --file %{_tmppath}/$GITEA_LUGIT_THEME.tar.gz
|
||||
rm %{_tmppath}/$GITEA_LUGIT_THEME.tar.gz
|
||||
runuser --user=gitea -- mv %{_tmppath}/gitea_images/* %{_sharedstatedir}/gitea/custom/public/assets/img
|
||||
runuser --user=gitea -- cp %{_tmppath}/gitea_images/* %{_sharedstatedir}/gitea/custom/public/assets/img
|
||||
|
||||
# Create postgres user and db
|
||||
if ! runuser --user=postgres -- psql --quiet --tuples-only --command='\du' | grep --quiet gitea; then
|
||||
@@ -83,7 +83,7 @@ chmod 755 $ACTRUNNER_BINARY
|
||||
mv $ACTRUNNER_BINARY %{_sbindir}/act_runner
|
||||
|
||||
# Create 4 actrunner users
|
||||
export ACTRUNNER_TOKEN=$(runuser --user=gitea -- gitea actions generate-token-runner --scope samuel)
|
||||
export ACTRUNNER_TOKEN=$(runuser --user=gitea -- gitea actions generate-runner-token)
|
||||
for i in $(seq 1 4); do
|
||||
if ! id actrunner$i >/dev/null 2>&1; then
|
||||
useradd --base-dir %{_sharedstatedir} --create-home --shell $SHELL --system actrunner$i
|
||||
@@ -136,6 +136,7 @@ fi
|
||||
%ghost %attr(755, root, root) %{_sbindir}/act_runner
|
||||
|
||||
%dir %attr(755, root, root) %{_tmppath}/gitea_images
|
||||
%attr(644, root, root) %{_tmppath}/gitea_images/{favicon,logo}.{png,svg}
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
Reference in New Issue
Block a user