@@ -4,10 +4,15 @@ steps: | |||||
- copy: | - copy: | ||||
- [ files/body_inner_pre.tmpl, | - [ files/body_inner_pre.tmpl, | ||||
/usr/local/share/gitea/templates/custom/body_inner_pre.tmpl ] | /usr/local/share/gitea/templates/custom/body_inner_pre.tmpl ] | ||||
- [ files/header.tmpl, | |||||
/usr/local/share/gitea/templates/custom/header.tmpl ] | |||||
- [ files/custom.css, | |||||
/usr/local/share/gitea/public/css/custom.css ] | |||||
- [ files/secrets.ini, | - [ files/secrets.ini, | ||||
/tmp/secrets.ini ] | /tmp/secrets.ini ] | ||||
- run: | | - run: | | ||||
export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \ | export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \ | ||||
export GITEA_TMPL_BASE=/usr/local/share/gitea/templates/base && \ | |||||
export SECRET_CONF=/tmp/secrets.ini && \ | export SECRET_CONF=/tmp/secrets.ini && \ | ||||
crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \ | crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \ | ||||
crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \ | crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \ | ||||
@@ -20,4 +25,5 @@ steps: | |||||
crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \ | crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \ | ||||
crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \ | crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \ | ||||
rm -v $SECRET_CONF && \ | rm -v $SECRET_CONF && \ | ||||
sed -i -e '/<link rel="mask-icon"/ d' /usr/local/share/gitea/templates/base/head.tmpl | |||||
sed -i -e '/<link rel="mask-icon"/ d' $GITEA_TMPL_BASE/head.tmpl && \ | |||||
sed -i -e 's/<a href="{{AppSubUrl}}\/">$/<a href="https:\/\/adared.ch\/">/' $GITEA_TMPL_BASE/head_navbar.tmpl |
@@ -2,7 +2,7 @@ | |||||
<div class="ui positive message" style="margin: 1em;"> | <div class="ui positive message" style="margin: 1em;"> | ||||
IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an | IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an | ||||
email to s dot adaszewski at gmail dot com. User accounts | email to s dot adaszewski at gmail dot com. User accounts | ||||
are only meant to report issues and/or generate pull requests. | |||||
are meant only to report issues and/or generate pull requests. | |||||
This is a purpose-specific Git hosting for | This is a purpose-specific Git hosting for | ||||
<a href="https://adared.ch" target="_blank">ADARED</a> | <a href="https://adared.ch" target="_blank">ADARED</a> | ||||
projects. Thank you for your understanding! | projects. Thank you for your understanding! | ||||
@@ -0,0 +1,3 @@ | |||||
.following.bar .item.brand .ui.mini.image { | |||||
width: 100px; | |||||
} |
@@ -0,0 +1 @@ | |||||
<link rel="stylesheet" type="text/css" href="{{StaticUrlPrefix}}/css/custom.css" /> |
@@ -7,9 +7,12 @@ steps: | |||||
- run: | | - run: | | ||||
ASSUME_ALWAYS_YES=yes pkg install py37-pillow && \ | ASSUME_ALWAYS_YES=yes pkg install py37-pillow && \ | ||||
export LOGO_URL=https://adared.ch/wp-content/uploads/2017/04/adared_logo_20170403-2.png && \ | export LOGO_URL=https://adared.ch/wp-content/uploads/2017/04/adared_logo_20170403-2.png && \ | ||||
export FAVICON_URL=https://adared.ch/wp-content/uploads/2017/04/cropped-adared_favicon-192x192.png && \ | |||||
export GITEA_IMG=/usr/local/share/gitea/public/img && \ | |||||
fetch $LOGO_URL -o logo.png && \ | fetch $LOGO_URL -o logo.png && \ | ||||
fetch $FAVICON_URL -o $GITEA_IMG/favicon.png && \ | |||||
python3.7 /tmp/resize.py logo.png && \ | python3.7 /tmp/resize.py logo.png && \ | ||||
mv -v gitea-*.png /usr/local/share/gitea/public/img/ && \ | |||||
mv -v gitea-*.png $GITEA_IMG/ && \ | |||||
rm -v logo.png && \ | rm -v logo.png && \ | ||||
rm -v /tmp/resize.py && \ | rm -v /tmp/resize.py && \ | ||||
ASSUME_ALWAYS_YES=yes pkg remove py37-pillow && \ | ASSUME_ALWAYS_YES=yes pkg remove py37-pillow && \ | ||||