Compare commits

...

6 Commits

Author SHA1 Message Date
0d517df3ee Merge branch 'develop' into dist/eole/2.6.2/develop 2019-09-30 09:43:36 +02:00
93b96fb8e0 Correction génération mot de passe par eole-db 2019-09-29 10:08:53 +02:00
5fa6632153 Merge branch 'develop' into dist/eole/2.6.2/develop 2019-06-18 09:19:44 +02:00
e42436c303 Upgrade to Gitea 1.8.3 2019-06-18 09:19:25 +02:00
22525b938a Merge branch 'develop' into dist/eole/2.6.2/develop 2019-06-17 17:15:39 +02:00
054bdf790a Handle Gitea version upgrade in pretemplate script
Check for version update with script expected version versus installed
version
2019-06-17 17:14:27 +02:00
3 changed files with 11 additions and 17 deletions

View File

@ -16,7 +16,7 @@ HOMEDIR="${WKDIR}/${USER}"
OS="linux"
ARCH="amd64"
APPVERSION="1.8.2"
APPVERSION="1.8.3"
APPNAME="gitea"
APPBINARY="gitea"
APPSIG="7C9E68152594688862D62AF62D9AE806EC1592E2"
@ -42,25 +42,20 @@ function configure_proxy {
function create_app_dir {
if [[ ! -d ${APPDIR} ]]
then
mkdir -p ${APPDIR}
chown ${USER}:${GROUP} ${APPDIR} -R
fi
mkdir -p "${APPDIR}"
chown ${USER}:${GROUP} "${APPDIR}" -R
# Create app structure
mkdir -p ${APPDIR}/{custom,data,indexers,public,log}
chown ${USER}:${GROUP} ${APPDIR}/{data,indexers,log}
chmod 750 ${APPDIR}/{data,indexers,log}
mkdir -p ${APPCONFDIR}
mkdir -p "${APPCONFDIR}"
chown root:${GROUP} ${APPCONFDIR}
chmod 770 ${APPCONFDIR}
chmod 770 "${APPCONFDIR}"
mkdir -p "${APPBINDIR}"
chown ${USER}:${GROUP} "${APPBINDIR}"
if [[ ! -d ${APPBINDIR} ]]
then
mkdir -p ${APPBINDIR}
chown ${USER}:${GROUP} ${APPBINDIR}
fi
}
function create_user_and_group {

View File

@ -34,8 +34,7 @@ createscript: "/usr/share/eole/db/gitea/gen/00-create-gitea-db.sql"
%set cnt_prefix = %%getVar('container_path_reseau', '')
pwd_files:
- {file: '%%cnt_prefix/etc/gitea/conf/app.ini',
pattern: 'PASSWD = ',
end_pattern: '',
pattern: 'PASSWD = `',
end_pattern: '`',
owner: 'root:gitservice',
mod: '660' }

View File

@ -70,7 +70,7 @@ HOST = %%{gitea_dbserver}:%%{gitea_dbport}
%end if
NAME = gitea
USER = gitea
PASSWD = gitea1234
PASSWD = `gitea1234`
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
; For "sqlite3" only